diff options
author | Dennis Sweeney <36520290+sweeneyde@users.noreply.github.com> | 2022-12-23 18:15:47 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-23 18:15:47 (GMT) |
commit | a98d9ea56e7b473af54438ecc487a6bf1b4d6530 (patch) | |
tree | 792d718b70d08874bd011cbf800af000abdca7e9 /Python/pyfpe.c | |
parent | 36d358348de8efad75ebcf55dad8ed4a4f6dcda9 (diff) | |
download | cpython-a98d9ea56e7b473af54438ecc487a6bf1b4d6530.zip cpython-a98d9ea56e7b473af54438ecc487a6bf1b4d6530.tar.gz cpython-a98d9ea56e7b473af54438ecc487a6bf1b4d6530.tar.bz2 |
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 'Python/pyfpe.c')
0 files changed, 0 insertions, 0 deletions