How slow? (was Re: Python IS slow !)
Markus Kohler
markus_kohler at hp.com
Tue May 4 09:47:29 EDT 1999
Christian Tismer wrote:
>
> Markus Kohler wrote:
> >
> > M.-A. Lemburg wrote:
> > >
> > > Markus Kohler wrote:
> > > >
> > > > >>>>> "Gordon" == Gordon McMillan <gmcm at hypernet.com> writes:
>
> [much deleted]
>
> > > Have you tried the P2C "compiler" ?
> > >
> > > http://lima.mudlib.org/~rassilon/p2c/
> >
> > Yes, the speedup is not that great. As far as I can remember not more
> > tham 30%.
> > >From what quantify tells me it's still spending a lot of time in
> > function calling code.
>
> P2C does all it can do to get the interpreter overhead away.
> For me this turns out as a nice try but the wrong idea.
> These 30% generate a C code bloat of hundreds of kilobytes
> of C code, while the internal function call overhead is still
> there, eating probably at least as much.
>
P2C uses PyEval_CallObjectWithKeywords which several levels later calls
vgetargs1
which seems to parse(!) the arguments.
The P2C compiled version of tak spends more then 50% in this routine.
Markus
--
Markus Kohler mailto:markus_kohler at hp.com
More information about the Python-list
mailing list