mirror of
https://github.com/python/cpython.git
synced 2025-08-23 02:04:56 +00:00
Remove unneeded dummy test from the set search loop (when the hashes match we know the key is not a dummy).
This commit is contained in:
parent
3037e84ad1
commit
a5ebbf6295
2 changed files with 15 additions and 5 deletions
|
@ -14,7 +14,10 @@ extern "C" {
|
|||
2. Active: key != NULL and key != dummy
|
||||
3. Dummy: key == dummy
|
||||
|
||||
The hash field of Unused or Dummy slots have no meaning.
|
||||
The hash field of Unused slots have no meaning.
|
||||
The hash field of Dummny slots are set to -1
|
||||
meaning that dummy entries can be detected by
|
||||
either entry->key==dummy or by entry->hash==-1.
|
||||
*/
|
||||
|
||||
#define PySet_MINSIZE 8
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue