Re: Why are intepreters so slow today
Larry Wall (email@example.com)
Sun, 17 Apr 1994 09:38:36 GMT
In article <766522873@sheol.UUCP> firstname.lastname@example.org (Wayne Throop) writes:
: : From: email@example.com (Larry Wall)
: : Everything is still done in floating point, however. Ask me
: : again after I've implemented "pragma integer". :-)
: Larry's comment is ensmilied, but seriously: my investigations into
: interpreter performance bottlenecks indicate that pragma integer won't
: get you much at all if the basic expression overhead is still 1/30 or
: so. Out of that 30-times-slower, the actual float-that-could-be-int
: calculations are (I estimate) maybe 2 or 3 of the 30 times.
That's about right. It turned out to save about 10%. By the way, instead
of "pragma integer" it turned out to be "hint integer". Ah, well...
: Of course, if in reacting to "pragma integer" Larry meant that he'd use
: a completely different, leaner, meaner, embedded expression interpreter
: for *all* operations, including looping and such... well then, as Emily
: Litella said..... "Nevermind".
For my next trick I will add