[New-bugs-announce] [issue46953] use FASTCALL for __import__ builtin
Kumar Aditya
report at bugs.python.org
Tue Mar 8 02:52:36 EST 2022
New submission from Kumar Aditya <rahuladitya303 at gmail.com>:
Use FASTCALL for __import__ builtin.
Benchmark:
--------------------------------------------------------------------------
import pyperf
runner = pyperf.Runner()
runner.timeit(name="bench __import__",
stmt="__import__('asyncio')"
------------------------------------------------------------------------
Result:
Mean +- std dev: [base] 191 ns +- 16 ns -> [patch] 112 ns +- 11 ns: 1.71x faster
----------
components: Interpreter Core
messages: 414729
nosy: Dennis Sweeney, Mark.Shannon, kumaraditya303
priority: normal
pull_requests: 29865
severity: normal
status: open
title: use FASTCALL for __import__ builtin
type: performance
versions: Python 3.11
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46953>
_______________________________________
More information about the New-bugs-announce
mailing list