[Python-Dev] PEP 580/590 discussion

Mark Shannon mark at hotpy.org
Tue Apr 2 15:38:23 EDT 2019


On 01/04/2019 6:31 am, Jeroen Demeyer wrote:
> I added benchmarks for PEP 590:
> https://gist.github.com/jdemeyer/f0d63be8f30dc34cc989cd11d43df248

Thanks. As expected for calls to C function for both PEPs and master 
perform about the same, as they are using almost the same calling 
convention under the hood.

As an example of the advantage that a general fast calling convention 
gives you, I have implemented the vectorcall versions of list() and range()


Which gives a roughly 30% reduction in time for creating ranges, or 
lists from small tuples.



More information about the Python-Dev mailing list