[Mono-devel-list] First CIL Regex performance result

Ben Maurer bmaurer at users.sourceforge.net
Sun Feb 29 14:48:10 EST 2004


Btw, one other thing I would mention is this:

Make some function calls.

This is going to help you in a few ways. First of all, you will probably
find it much easier to write a function for something rather than
jumping all over the place. It will probably end up having easier to
debug code. At this stage, you want easy to debug code, not highly
performant code.

Also, jits are more easily able to optimize small functions. I know many
of the MS people have blogged that their jit will not apply some things
if you have more than n local variables (i forget what n is). So, you
may lose optimizations by having large code.

Remember, the jit can do inlining (for mono, this is not true by default
today). Let the jit decide what needs to be inlined, it will make a good
choice.

-- Ben




More information about the Mono-devel-list mailing list