Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which is faster for writing files C# (.NET) or PERL? [closed]

We have a lot of old legacy Perl scripts that connect to a MS SQL db process some records, and make files. Over time, the daily transaction size grew and these scripts are becoming more and more expensive.

Moreover, the Databases grew with more and more tables, and modifying the old Perl scripts is cumbersome. Was thinking about redoing some of the major scripts under .NET (in C#)

Is there a speed advantage under a machine running Windows Server of using one vs the other?

Again the idea is

  1. Execute Query

  2. Process Results through some basic formatting

  3. Write results to a file

like image 247
Sam Avatar asked Feb 21 '23 17:02

Sam


1 Answers

Depends on how stupid the respective programmers are. When initialized properly they both should be comfortable saturating whatever bandwidth you throw at them disc system wise - and THERE is your bottleneck. Make large cached writes (.NET BufferedStream) and make ure you have a SSD or something fast ready. The perforamcne bottleneck with proper programming is the disc subsystem for this type of work.

like image 187
TomTom Avatar answered Mar 06 '23 08:03

TomTom