[Python-Dev] new bytecode results

Dan Sugalski dan@sidhe.org
Thu, 27 Feb 2003 14:05:42 -0500


At 1:54 PM -0500 2/27/03, Damien Morton wrote:
>In general, it would seem that adding opcodes in bulk, even if many opcodes
>switch to the same labels, results in a minor performance loss.

While I'm somewhat loathe to help you guys go faster (that whole pie 
thing) you might want to take a look at commonly used pairs of 
opcodes and reordering the code in the switch body so pairs are 
adjacent and more likely to be in cache.
-- 
                                         Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
dan@sidhe.org                         have teddy bears and even
                                       teddy bears get drunk