[Python-3000] Function call speed (Was: Cleaning up argument list parsing)
Josiah Carlson
jcarlson at uci.edu
Tue Apr 18 19:40:47 CEST 2006
"Jim Jewett" <jimjjewett at gmail.com> wrote:
>
> On 4/17/06, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
> > Guido van Rossum wrote:
>
> > > Inlining code obviously addresses this, but that's often
> > > killing code structure.
>
> > Would automated inlining be a legitimate use for
> > ast-hacking?
>
> To keep the same semantics, you need some notification that the (real
> version of the) inlined code just got modified.
Not necessarily. I am of the opinion that the function inlining should
be done explicitly via decorator (see http://bytecodehacks.sourceforge.net/bch-docs/bch/module-bytecodehacks.inline.html
for a sample implementation).
- Josiah
More information about the Python-3000
mailing list