SIGN IN SIGN UP
python / cpython UNCLAIMED

The Python programming language

72156 0 62 Python

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).
D
Dennis Sweeney committed
a98d9ea56e7b473af54438ecc487a6bf1b4d6530
Parent: 36d3583
Committed by GitHub <noreply@github.com> on 12/23/2022, 6:15:47 PM