At 11:00 AM -0800 12/24/03, Joe Wilson wrote:
Even with a zero overhead runloop a 20 times speed improvement
in running typical non-trivial Python programs is simply not possible.
It's not like the Python opcodes perform no work at all:

 Performance Measurements for Pystone
 http://zope.org/Members/jeremy/CurrentAndFutureProjects/pystone

This'll quickly head down to a "Yes, it can!" "No, it can't!" sort of argument, so it's probably not worth going much further without actual benchmarks, but I'll say that I've good reason to not be surprised at the speedup, and I don't think that it'll be at all necessary to do type inferencing to get that sort of performance gain in specialized circumstances, of which pystone definitely is.


--- Dan Sugalski <[EMAIL PROTECTED]> wrote:
 At 10:28 PM -0800 12/23/03, Joe Wilson wrote:
 >In order to get the 20x speed gain you seek I assume
 >that Parrot would have to perform some sort of variable
 >type inference to distinguish, for example, when a
 >scalar is really just an integer and use an integer register.
 >Otherwise, the PMCs in Parrot would perform much the same
 >as the Python scalars (or whatever Python calls them).

 No, actually. Most of that speedup can come from a better
 runloop--python's core loop's rather inefficient. Full-on type
> inferencing and whatnot'd likely get you a larger speedup.

-- Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
[EMAIL PROTECTED]                         have teddy bears and even
                                      teddy bears get drunk

Reply via email to