[Mono-list] can i pre-compile *.asmx for mod-mono-server2?
kornelpal at gmail.com
Sun Jan 13 06:48:24 EST 2008
There are two different kinds of precompilation:
1. source-to-il (processor independent byte code): this is what C# compiler
2. il-to-native (processor specific byte code): this is what the runtime
(with AOT) does
If you don't want to distribute your source code just don't put it to the
.asmx file. Compile a .dll assembly put it to the bin directory and only
reference the type name in the .asmx file.
AOT (ahead of time) compilation creates native code on the disk but JIT
(just in time) compilation that creates native code only in memory is faster
for several cases.
So I suggest you to put your code to a DLL file and only reference the type
name in the .asmx file.
----- Original Message -----
From: "aztlan2k" <aztlan2k at gmail.com>
To: <mono-list at lists.ximian.com>
Sent: Sunday, January 13, 2008 6:38 AM
Subject: [Mono-list] can i pre-compile *.asmx for mod-mono-server2?
> I've searched the Net and found a few bits of information here and there,
> nothing solid, so I thought I'd ask here. I hope I didn't just miss the
> answer in plain view somewhere...
> Is it possible to pre-compile my *.asmx files so that I don't take that
> initial compilation hit on first access to my web services? (something
> along the lines of 'mono --aot' but for mod-mono-server )
> I ran across a post that recommended simply accessing the pages with wget
> before presenting them to the outside world, which I suppose would work,
> I was wondering if there might be a more direct approach? This method is
> bit of a workaround to a problem i would think there'd be a read solution
> I appreciate any and all tips! Thanx!
> View this message in context:
> Sent from the Mono - General mailing list archive at Nabble.com.
> Mono-list maillist - Mono-list at lists.ximian.com
More information about the Mono-list