[Mono-list] Compiled Method Cache

Seun Osewa osewa77@yahoo.com
Mon, 16 Sep 2002 06:53:21 -0700 (PDT)


I was comparing the compilation speed of mcs and
portable.net's cscc and the speed difference caused an
idea to strike me.  Not a nove idea, but I think its
worth looking into.  

I assume the speed difference in compiling (small)
test programs is primarily due to the time used to
JIT-compile required methods.

Why can't mono cache compiled methods somewhere in the
filesystem (maybe using something like berkeleyDB?)
and _not_ have to JIT-compile them everytime an
assembly is loaded (if the assembly has not been
modified of course).  The hash.timestamp of an
assembly is enough to establish this.  Implementation
ideas in my head are probably inferior to what the
main developers can think of so I needn't mention that
it won't be particularly difficult.

What do you think?

__________________________________________________
Do you Yahoo!?
Yahoo! News - Today's headlines
http://news.yahoo.com