Which language is fastest for this?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm using ColdFusion for these task:
- disk writes
- searching for items within a string or array
- looping
- calling stored procedures in MS SQL Server

Using the same techniques, which .NET language will run the above type of
task faster? Please elaborate.

Also, because the above task are intense (done through each loop
interfaction), as more transactions occur over time, CF will use more cpu
time. Eventually, more servers are needed for the work to be spread out.
Taking that into considering, which .NET language is best?

Thanks,
Brett
Brett
 
Using the same techniques, which .NET language will run the above type of
task faster? Please elaborate.
Taking that into considering, which .NET language is best?


there is no '.NET language', only 'dialects'.
Thus all languages are near-equal fast.
http://support.microsoft.com/?kbid=308470

The only difference could be with 'Managed Extensions for C++ .NET',
where you can mix native code and managed .NET code.
 
Thomas Scheidegger said:
there is no '.NET language', only 'dialects'.
Thus all languages are near-equal fast.
http://support.microsoft.com/?kbid=308470

The only difference could be with 'Managed Extensions for C++ .NET',
where you can mix native code and managed .NET code.

VB.NET will probably be the language used as it will do all of the
previously mentioned task well. The next thing is whether it should be
compiled into a DLL or EXE? It will be called multiple times. I see
compiling into a DLL and calling methods from this loaded object as more
efficient than running EXEs. Do you think this is a good setup? What are
the performance issues?

Thanks,
Brett
 
If I understand the question correctly (which is better performing for
multiple application to access the same code), then yes, compiling to a
DLL would be best. The reason that a DLL will be better performing is
that an EXE would force the creation of multiple domains (think separate
memory and instruction space, though there is a lot of other issues as
well). Plus each EXE will require a separate JIT (Just In Time) pass as
the code is called. A DLL, which will remain in memory until the last
caller of the code is done with it, will be JITed the first time the
required code is needed.

HTH

David
 
Thanks David. That's good information. DLLs will run in the memory space of
the parent application. However, if I am using a stand alone DLL, it is its
own application correct? How does the memory space work there?

A ColdFusion website will be accessing the DLL. CF will want to create an
object to reference methods within the DLL. I can store the initial object
reference in a session variable for any CF template to access without needing
another instantiation. How is this done in say VB.NET? Is there also an
initial instantiation and then only references to the loaded object?

Brett
 
Back
Top