3 ms·
I did similar studies about a decode ago for perl with similar results. But what he's missing are two much more important thing. 1. smaller datastructures. Th
by rurban 7y ago
I did similar studies about a decode ago for perl with similar results.
But what he's missing are two much more important thing.
1. smaller datastructures.
They are way overblown, both the ops and the data. Compress, trade for smaller data and more simplier ops.
In my latest VM I use 32 bit words for each and for each data.
2. Inlining. A tellsign is when the calling convention (arg copying) is your biggest profiler contributor.
Python's bytecode and optimizer is now much better than perl's, but it's still 2x slower than perl. Python has by far the slowest VM. All the object and method hooks are insane. Still no unboxing or optimize refcounting away, which brought php ahead of the game.