New submission from Dennis Sweeney <sweeney.dennis...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue41356>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to