diff options
| author | Dennis Sweeney <36520290+sweeneyde@users.noreply.github.com> | 2022-12-23 13:15:47 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-23 13:15:47 -0500 |
| commit | a98d9ea56e7b473af54438ecc487a6bf1b4d6530 (patch) | |
| tree | 792d718b70d08874bd011cbf800af000abdca7e9 /Lib/copy.py | |
| parent | 36d358348de8efad75ebcf55dad8ed4a4f6dcda9 (diff) | |
| download | cpython-git-a98d9ea56e7b473af54438ecc487a6bf1b4d6530.tar.gz | |
gh-94155: Reduce hash collisions for code objects (#100183)
* Uses a better hashing algorithm to get better dispersion and remove commutativity.
* Incorporates `co_firstlineno`, `Py_SIZE(co)`, and bytecode instructions.
* This is now the entire set of criteria used in `code_richcompare`, except for `_PyCode_ConstantKey` (which would incorporate the types of `co_consts` rather than just their values).
Diffstat (limited to 'Lib/copy.py')
0 files changed, 0 insertions, 0 deletions
