[Python-3000] Function call speed (Was: Cleaning up argument list parsing)
Guido van Rossum
guido at python.org
Tue Apr 18 20:50:15 CEST 2006
On 4/18/06, Ian Bicking <ianb at colorstudy.com> wrote:
> Guido van Rossum wrote:
> > Perhaps, if you can do it in a way that it also works for IronPython
> > and Jython...
>
> Is it expected that IronPython and Jython will have similar performance
> characteristics to CPython? That seems hard to achieve. I would assume
> that the AST hacking would only effect performance (and maybe remove
> some potential dynamicism), so un-AST-hacked code would work identically.
Since it's hard to ensure that AST hacking doesn't change the
semantics in any way I don't think you can guarantee that. You could
perhaps guarantee that for some kind of inlining, but if you support
AST-hacking for inlining that you automatically make it available for
other code transformations.
Anyway, this is rather wild py-in-the-sky -- I'd rather not spend time
discussing it until there's a working implementation and a PEP.
--
--Guido van Rossum (home page: http://www.python.org/~guido/)
More information about the Python-3000
mailing list