|
|
Log in / Subscribe / Register

Tratt: Fast Enough VMs in Fast Enough Time

Tratt: Fast Enough VMs in Fast Enough Time

Posted Feb 16, 2012 20:18 UTC (Thu) by kleptog (subscriber, #1183)
In reply to: Tratt: Fast Enough VMs in Fast Enough Time by mjthayer
Parent article: Tratt: Fast Enough VMs in Fast Enough Time

As long as you only have a few different paths it's not a big deal. The problem is when the paths explode exponentially. The case I came across was the parsing of email headers where you process each header with a separate piece of code. Because practically every email has the headers in a different order the tracing JIT ends up producing many almost but not quite the same paths. Leading to memory bloat. We ended up dropping the use of PyPy in one project because the MB/unit work was such that we could run multiple copies of the CPython code in the space of one PyPy copy and come out ahead.

I don't think this is an insurmountable problem, but it's certainly a problem. Ofcourse, if the PyPy teams licks it, then it will be fixed for every JIT based on PyPy. That's the really cool part :).


to post comments


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds