[Python-Dev] functools.compose to chain functions together

Antoine Pitrou solipsis at pitrou.net
Mon Aug 17 13:01:31 CEST 2009


Le lundi 17 août 2009 à 20:53 +1000, Nick Coghlan a écrit :
> P.S. PEP 309 is wrong when it says a C version probably isn't worthwhile
> - between the time the PEP was first implemented and the time 2.5 was
> actually released, enough investigation was done to show that the speed
> gain from Hye-Shik Chang's C version was well worth the additional code
> complexity.

Yes, one-line Python wrappers can kill performance of pure C code.
Seen that in the IO lib, again.

Regards

Antoine.




More information about the Python-Dev mailing list