194 Commits (abdc16ee1bb9819ecc6500a8f1d8720fc2072643)

Author SHA1 Message Date
Eric V. Smith 6ba5665fc7 Fix typo in comment. 12 years ago
Raymond Hettinger 74fc8c47f6 Add comments to frozenset_hash(). 12 years ago
Raymond Hettinger e259f13874 Minor code clean-up. Keep the C-API all in one section. 12 years ago
Raymond Hettinger 710a67edfc Note that LINEAR_PROBES can be set to zero. 13 years ago
Raymond Hettinger 4ef0528b97 Minor beautification. Put updates and declarations in a more logical order. 13 years ago
Raymond Hettinger 0ce1953bf7 When LINEAR_PROBES=0, let the compiler remove the dead code on its own. 13 years ago
Raymond Hettinger c70a2b7bb9 Make the linear probe sequence clearer. 13 years ago
Raymond Hettinger 8408dc581e Issue 18771: Make it possible to set the number linear probes at compile-time. 13 years ago
Raymond Hettinger 742d8716ff Put the defines in the logical section and fix indentation. 13 years ago
Raymond Hettinger 583cd03fd1 Minor code beautification. 13 years ago
Raymond Hettinger 4ea9080da9 Improve code clarity by removing two unattractive macros. 13 years ago
Raymond Hettinger 8f8839e10a Remove the freelist scheme for setobjects. 13 years ago
Raymond Hettinger 04fd9dd52b Small rearrangement to bring together the three functions for probing the hash table. 13 years ago
Raymond Hettinger ae7b00e2d3 Move the overview comment to the top of the file. 13 years ago
Raymond Hettinger c56e0e3980 Minor touchups. 13 years ago
Raymond Hettinger 69492dab07 Factor-out the common code for setting a KeyError. 13 years ago
Raymond Hettinger a35adf5b09 Instead of XORed indicies, switch to a hybrid of linear probing and open addressing. 13 years ago
Raymond Hettinger 6c3c1ccd1b Update copyright. 13 years ago
Raymond Hettinger 95c0d67581 Further reduce the cost of hash collisions by inspecting an additional nearby entry. 13 years ago
Raymond Hettinger afe890923f Tighten-up the lookkey() logic and beautify the code a bit. 13 years ago
Antoine Pitrou 9d95254bb7 Issue #18772: fix the gdb plugin after the set implementation changes 13 years ago
Raymond Hettinger bfc1e1a9cd Add the same dummy type that is used in dictionaries. 13 years ago
Raymond Hettinger fcf3b500ba Issue 18797: Remove unneeded refcount adjustments for dummy objects. 13 years ago
Raymond Hettinger 5bb1b1dd6f Hoist the global dummy lookup out of the inner loop for set_merge(). 13 years ago
Raymond Hettinger 929cbac307 Remove a redundant hash table probe (this was artifact from an earlier draft of the patch). 13 years ago
Raymond Hettinger ae9e616a00 Issue 18772: Restore set dummy object back to unicode and restore the identity checks in lookkey(). 13 years ago
Raymond Hettinger 3c0a4f5def Issue18771: Reduce the cost of hash collisions for set objects. 13 years ago
Raymond Hettinger 07351a0449 Remove the else-clause because the conditions are no longer mutually exclusive. 13 years ago
Raymond Hettinger 237b34b074 Use a known unique object for the dummy entry. 13 years ago
Raymond Hettinger 8ad3919577 Hoist the global "dummy" lookup outside of the reinsertion loop. 13 years ago
Antoine Pitrou 9ed5f27266 Issue #18722: Remove uses of the "register" keyword in C code. 13 years ago
Raymond Hettinger c629d4c9a2 Replace outdated optimization with clearer code that compiles better. 13 years ago
Raymond Hettinger c86d7e989c Silence compiler warning for an unused declaration 13 years ago
Antoine Pitrou 5e946bacef Fix compilation warning with gcc 4.8 (unused typedef) 13 years ago
Gregory P. Smith 27cbcd6241 Fix the internals of our hash functions to used unsigned values during hash 13 years ago
Ezio Melotti 0e1af282b8 Fix typo. 14 years ago
David Malcolm 49526f48fc Issue #14785: Add sys._debugmallocstats() to help debug low-level memory allocation issues 14 years ago
Antoine Pitrou a701388de1 Rename _PyIter_GetBuiltin to _PyObject_GetBuiltin, and do not include it in the stable ABI. 14 years ago
Kristján Valur Jónsson 31668b8f7a Issue #14288: Serialization support for builtin iterators. 14 years ago
Antoine Pitrou 093ce9cd8c Issue #6695: Full garbage collection runs now clear the freelist of set objects. 14 years ago
Benjamin Peterson 2b50a01d11 remove unused variable 14 years ago
Benjamin Peterson e3b5eda8be remove unused variable 14 years ago
Petri Lehtinen e0aa803714 Fix the return value of set_discard (issue #10519) 14 years ago
Petri Lehtinen a39de111a5 Fix the return value of set_discard (issue #10519) 14 years ago
Petri Lehtinen 5acc27ebe4 Avoid unnecessary recursive function calls (closes #10519) 14 years ago
Petri Lehtinen 5f4d870668 Avoid unnecessary recursive function calls (closes #10519) 14 years ago
Martin v. Löwis bd928fef42 Rename _Py_identifier to _Py_IDENTIFIER. 14 years ago
Martin v. Löwis 1ee1b6fe0d Use identifier API for PyObject_GetAttrString. 15 years ago
Martin v. Löwis d63a3b8beb Implement PEP 393. 15 years ago
Mark Dickinson 57e683e53e Issue #1621: Fix undefined behaviour in bytes.__hash__, str.__hash__, tuple.__hash__, frozenset.__hash__ and set indexing operations. 15 years ago