[Python-checkins] r46438 - in python/trunk: Include/pyport.h Python/ceval.c

Fredrik Lundh fredrik at pythonware.com
Sat May 27 15:20:58 CEST 2006


Martin v. Löwis wrote:

> It doesn't make any difference at all for 4.0: the assembly files are
> identical.
> 
> Most of the functions declared regparm get inlined, anyway, either
> because they are small, or because they are called only once.
> 
> For the functions that don't get inlined (e.g. fastsearch), gcc 4.0
> will automatically apply regparm to a function if it is "local" (i.e. it
> is static and its address is never taken).


which might explain the *slowdown* we're seeing in GCC 4.X.  as reported 
by Georg:

With GCC 4.1.1:

Python 2.4.4 trunk: 41493
Python 2.5.0 a2:    41322
Python 2.5   trunk: 42553

With GCC 3.4.6:

Python 2.4.4 trunk: 41322
Python 2.5.0 a2:    43478
Python 2.5   trunk: 45045

we got similar slowdowns on Windows/Pentium after Py_LOCAL-ifying ceval 
for Visual C.

is there an easy way to switch this off on a file-by-file basis ?

</F>



More information about the Python-checkins mailing list