How long does it take to require all the files you need? Do you use installed 
IronRuby v1.0 binaries for .NET 4.0 or do you build IronRuby yourself?
Can you be specific about what you're requiring?

Tomas

-----Original Message-----
From: ironruby-core-boun...@rubyforge.org 
[mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Martin Smith
Sent: Wednesday, May 12, 2010 11:27 AM
To: ironruby-core@rubyforge.org
Subject: Re: [Ironruby-core] What's next?

You guys have hit the nail on the head for me I actually want it for both 
reasons: to provide some loose protection for our code and to improve startup 
times.

I was thinking about doing something around packaging like you guys were 
talking about, but i think then I'd have to redefine Kernel.require to make 
sure that all the require statements execute properly. For code protection, it 
only provided small benefits (a determined code stealer would easily circumvent 
the protections), but if it helped with startup times that would benefit us 
greatly.

The issue is that we use IR for our UI layer so the first time they ask for any 
dialog it needs to compile quite a bit of code so the first time they load a 
dialog can take some time.  I've thought of changing this so we do the 
compilation at startup but i'm not quite sure if that will work.  I'd envision 
something like this:

1) set compilation threshold to 0 (compile immediately)
2) execute "require 'file'" for each ruby script 
3)set compilation threshold to 1 so eval doesn't compile everything (we 
semi-extensively use eval)

Would something like this be possible? Is the compilation threshold settable 
dynamically?

Thanks in advance,
Martin
_______________________________________________
Ironruby-core mailing list
Ironruby-core@rubyforge.org
http://rubyforge.org/mailman/listinfo/ironruby-core

_______________________________________________
Ironruby-core mailing list
Ironruby-core@rubyforge.org
http://rubyforge.org/mailman/listinfo/ironruby-core

Reply via email to