Re: [Mono-list] can i pre-compile *.asmx for mod-mono-server2?

2008-01-13 Thread aztlan2k

Thanx Kornél,

It's not really the source code that I want to hide... it's simply wanting
to rid myself of the initial delay that is felt when the web services are
accessed for the first time (because of the compilation having to occur).   
On my system, that compilation time can take anywhere between 15-20
seconds... and after that, every access is only 1 sec or less.  I woiuld
like all accesses, including the first, to be as fast.

Thanx for you reply.

/r/



Kornél Pál-2 wrote:
> 
> Hi,
> 
> There are two different kinds of precompilation:
> 1. source-to-il (processor independent byte code): this is what C#
> compiler 
> does
> 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.
> 
> Kornél
> 
> - Original Message - 
> From: "aztlan2k" <[EMAIL PROTECTED]>
> To: 
> 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, 
>> but
>> 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, 
>> but
>> I was wondering if there might be a more direct approach?  This method is 
>> a
>> bit of a workaround to a problem i would think there'd be a read solution
>> to.
>>
>> I appreciate any and all tips!  Thanx!
>> -- 
>> View this message in context: 
>> http://www.nabble.com/can-i-pre-compile-*.asmx-for-mod-mono-server2--tp14782554p14782554.html
>> Sent from the Mono - General mailing list archive at Nabble.com.
>>
>> ___
>> Mono-list maillist  -  Mono-list@lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/mono-list 
> 
> ___
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
> 
> 

-- 
View this message in context: 
http://www.nabble.com/can-i-pre-compile-*.asmx-for-mod-mono-server2--tp14782554p14788843.html
Sent from the Mono - General mailing list archive at Nabble.com.

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] can i pre-compile *.asmx for mod-mono-server2?

2008-01-12 Thread aztlan2k

I've searched the Net and found a few bits of information here and there, but
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, but
I was wondering if there might be a more direct approach?  This method is a
bit of a workaround to a problem i would think there'd be a read solution
to.

I appreciate any and all tips!  Thanx!
-- 
View this message in context: 
http://www.nabble.com/can-i-pre-compile-*.asmx-for-mod-mono-server2--tp14782554p14782554.html
Sent from the Mono - General mailing list archive at Nabble.com.

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] mkbundle : "Error while compiling generated serializer"

2007-12-19 Thread aztlan2k

I did a mkbundle2 of my app and when I run it, every so often i keep getting
the following error message on console.

Error while compiling generated serializer.
(0,0) : error CS0006: cannot find metadata file 'data-0x8048b20'

Whenever I run my app on it's own (using mono and not bundled) i never see
this error.  As far as I can tell, all my serializable objects are
serializing just fine, but this error seems to be introduced by the fact
that I've done a mkbundle.  

I've searched for clues on the Net but haven't found anything useful at this
point.  (except of course the actual source code where this error message is
generated)

Does anyone have any tips on where I can find more info?  Or better yet,
know what's going on and how I can fix it?

Thanx!
-- 
View this message in context: 
http://www.nabble.com/mkbundle-%3A-%22Error-while-compiling-generated-serializer%22-tp14425973p14425973.html
Sent from the Mono - General mailing list archive at Nabble.com.

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list