On Mon, Jul 6, 2009 at 9:11 PM, Charles Oliver Nutter
<[email protected]>wrote:

>
> On Mon, Jul 6, 2009 at 8:31 PM, Jim Baker<[email protected]> wrote:
>
> > Incidentally, it would be nice if large switches got faster... :)
>
> We would love to have a bytecode interpreter in JRuby, but the large
> switch performance is the limiting factor. Alternatively you may want
> to look at implementing your interpreter by loading the bytecodes into
> their own polymorphic Instruction objects...you'll see *substantially*
> improved performance as a result.
>

Cool tip, the polymorphic instruction object approach should have direct
applicability to our regex engine, a mini-VM that's a direct port of the sre
engine in CPython.

However, if I get the idea correctly, it may be less applicable to our
serialization mini-VM (pickle), because of object allocation overhead for
the instruction objects. But maybe we can be clever.

-- 
Jim Baker
[email protected]

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "JVM 
Languages" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jvm-languages?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to