Home All Groups Group Topic Archive Search About

Dynamic code compilation and compiler start-up time

Author
12 Mar 2007 4:27 PM
Giulio Petrucci
Hi there,

I need to use dynamic C# (but also JScript and maybe VB.NET) code
compiling in the project I'm currently working on. Making some
performance tests I noticed that if I compiler 10 times (one by one) the
*same* code, the first compilation time is absolutely *longer* than the
other nine. I suppose that the compiler, when it's dynamically called,
needs some time to start-up, is it right?

In my scenario I have a server application listening to some clients
sending code to be compiled (and executed), so I'd like to keep the
compiler "active" for all my execution time.
Could anyone help me? Any link/suggestion/example would be appreciated.

Thanks in advance,
Giulio

--

AddThis Social Bookmark Button