[Python-Dev] Micro-benchmarks for PEP 580 (original) (raw)

Stefan Behnel stefan_ml at behnel.de
Wed Jul 11 01:39:05 EDT 2018


INADA Naoki schrieb am 11.07.2018 um 02:01:

On Wed, Jul 11, 2018 at 7:47 AM Victor Stinner wrote:

I proposed something simpler, but nobody tried to implement it. Instead of calling the long and complex PyArgParse...() functions, why not generating C code to parse arguments instead? The idea looks like "inlining" PyArgParse...() in its caller, but technically it means that Argument Clinic generates C code to parse arguments. But I have worrying about it. If we do it for all function, it makes Python binary fatter, consume more CPU cache. Once CPU cache is start stashing, application performance got slower quickly.

Now, I'd like to see benchmark numbers for that before I believe it. Macro benchmarks, not micro benchmarks! wink

Stefan



More information about the Python-Dev mailing list