[New-bugs-announce] [issue41870] Use PEP 590 vectorcall to speed up calls to bool()

Dong-hee Na report at bugs.python.org
Sun Sep 27 09:20:58 EDT 2020


New submission from Dong-hee Na <donghee.na92 at gmail.com>:

bool type is well-used builtin types, I noticed that if we use vector call to bool type, it shows the awesome performance enhancement.

Mean +- std dev: [master] 91.4 us +- 3.3 us -> [vectorcall] 48.6 us +- 3.1 us: 1.88x faster (-47%)

----------
assignee: corona10
files: bench_bool.py
messages: 377565
nosy: corona10, vstinner
priority: normal
severity: normal
status: open
title: Use PEP 590 vectorcall to speed up calls to bool()
type: performance
versions: Python 3.10
Added file: https://bugs.python.org/file49475/bench_bool.py

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41870>
_______________________________________


More information about the New-bugs-announce mailing list