aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/idlelib/BrowserControl.py
diff options
context:
space:
mode:
authorBénédikt Tran <10796600+picnixz@users.noreply.github.com>2025-06-21 14:32:00 +0200
committerGitHub <noreply@github.com>2025-06-21 14:32:00 +0200
commitd08b4b2333d28403633f9ceb86a3a5fab011d8a1 (patch)
tree55f7cd985136823b123f16c4a5c0d214868817c6 /Lib/idlelib/BrowserControl.py
parent7c4361564c3881946a5eca677607b4ffec0a566d (diff)
downloadcpython-d08b4b2333d28403633f9ceb86a3a5fab011d8a1.tar.gz
cpython-d08b4b2333d28403633f9ceb86a3a5fab011d8a1.zip
gh-135532: optimize calls to `PyMem_Malloc` in SHAKE digest computation (#135744)
- Add a fast path when the digest length is 0 to avoid calling useless functions. - Directly allocate via `PyBytes_FromStringAndSize(NULL, length)` when possible.
Diffstat (limited to 'Lib/idlelib/BrowserControl.py')
0 files changed, 0 insertions, 0 deletions