.netcom+

Performance gains when compiling .NET 1.1 COM+ components code with .NET 3.5 compiler


I need to build a service in form of a COM+ component using Enterprise Services.

The service is working right now. It gets a string does some spell-checking and returns a string.

My question is:

This component was compiled in .NET 1.1 but my environment is going to change to .NET 3.5 soon. So if I compile the code in .NET 3.5 (which is 2.0 actually) will I have any benefit? Any change in performance only by compiling in .NET3.5?

Bear in mind that I'm not using any .NET3.5 functionalities (or even WCF)!


Solution

  • There have been optimizations in the CLR and the libraries (startup is faster for example), but it is difficult to say if you'll see any real speed difference. String manipulation implies memory allocations implies pressure on the garbage collector, so it should be a bit better in 3.5.

    You'll only get a real answer by testing and measuring, sorry.