[New-bugs-announce] [issue41493] Refactoring dictresize to accept only new keysize
report at bugs.python.org
Thu Aug 6 05:04:27 EDT 2020
New submission from Inada Naoki <songofacandy at gmail.com>:
dictresize accept `minsize` and calculate `newsize` which is `newsize >= minsize`.
Some caller pass the exact dk_size so calculating `newsize` is not necessary.
Split calculating `newsize` from `minused` into new function.
Additonally, use _Py_bit_length for the calculation when possible.
components: Interpreter Core
title: Refactoring dictresize to accept only new keysize
versions: Python 3.10
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce