[issue41356] Convert bool.__new__ to argument clinic

2020-09-29 Thread Dennis Sweeney


Dennis Sweeney  added the comment:

Superseded by https://bugs.python.org/issue41870

--
nosy:  -larry
resolution:  -> works for me
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41356] Convert bool.__new__ to argument clinic

2020-07-22 Thread Dennis Sweeney


Dennis Sweeney  added the comment:

More microbenchmarks:

pyperf timeit "bool()"
Before: 63.1 ns +- 0.7 ns
After:  51.7 ns +- 1.2 ns

pyperf timeit "bool(0)"
Before: 77.4 ns +- 1.9 ns
After:  67.2 ns +- 1.3 ns

pyperf timeit "bool(17)"
Before: 77.3 ns +- 2.3 ns
After:  67.1 ns +- 1.0 ns

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41356] Convert bool.__new__ to argument clinic

2020-07-21 Thread Dennis Sweeney


Change by Dennis Sweeney :


--
keywords: +patch
pull_requests: +20723
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/21581

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41356] Convert bool.__new__ to argument clinic

2020-07-21 Thread Dennis Sweeney


New submission from Dennis Sweeney :

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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com