This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: Refactoring dictresize to accept only new keysize
Type: Stage: resolved
Components: Interpreter Core Versions: Python 3.10
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: methane
Priority: normal Keywords: patch

Created on 2020-08-06 09:04 by methane, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 21751 merged methane, 2020-08-06 09:14
Messages (2)
msg374919 - (view) Author: Inada Naoki (methane) * (Python committer) Date: 2020-08-06 09:04
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.
msg374971 - (view) Author: Inada Naoki (methane) * (Python committer) Date: 2020-08-07 05:08
New changeset d9323a8c6e07071a59dc4c910661db33236c01b2 by Inada Naoki in branch 'master':
bpo-41493: Refactoring dictresize (GH-21751)
Date User Action Args
2022-04-11 14:59:34adminsetgithub: 85665
2020-08-07 05:09:12methanesetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2020-08-07 05:08:59methanesetmessages: + msg374971
2020-08-06 09:14:31methanesetkeywords: + patch
stage: patch review
pull_requests: + pull_request20894
2020-08-06 09:04:27methanecreate