[issue41356] Convert bool.__new__ to argument clinic
Dennis Sweeney
report at bugs.python.org
Tue Jul 21 06:00:36 EDT 2020
New submission from Dennis Sweeney <sweeney.dennis650 at gmail.com>:
Benchmarked on my machine (Windows 10):
.\python.bat -m pyperf timeit -s "from collections import deque; x = [[], [1]] * 1_000_000" "deque(map(bool, x), maxlen=0)"
--- Win32 build configuration ---
Master: 105 ms +- 2 ms
With this change: 88.2 ms +- 2.1 ms
--- x64 build configuration ---
Master: 80.2 ms +- 1.3 ms
With this change: 74.2 ms +- 0.5 ms
----------
components: Argument Clinic
messages: 374058
nosy: Dennis Sweeney, larry
priority: normal
severity: normal
status: open
title: Convert bool.__new__ to argument clinic
type: performance
versions: Python 3.10
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41356>
_______________________________________
More information about the Python-bugs-list
mailing list