295 Commits (5d4cb54800966947db2e86f65fb109c5067076be)

Author SHA1 Message Date
lekma 491bbedc20 bpo-33391: Fix refleak in set_symmetric_difference (GH-6670) 8 years ago
Siddhesh Poyarekar 55edd0c185 bpo-33012: Fix invalid function cast warnings with gcc 8 for METH_NOARGS. (GH-6030) 8 years ago
Raymond Hettinger fa78806041
Removed unnecesssary bit inversion which doesn't improve dispersion statistics (#5235) 8 years ago
Raymond Hettinger b44c5169f6
bpo-26163: Frozenset hash improvement (#5194) 8 years ago
Raymond Hettinger 3329992e31
bpo-29476: Simplify set_add_entry() (#5175) 8 years ago
Serhiy Storchaka 13ad3b7a82 bpo-31462: Remove trailing whitespaces. (#3564) 8 years ago
Eric Snow 2ebc5ce42a bpo-30860: Consolidate stateful runtime globals. (#3397) 8 years ago
Eric Snow 05351c1bd8 Revert "bpo-30860: Consolidate stateful runtime globals." (#3379) 8 years ago
Eric Snow 76d5abc868 bpo-30860: Consolidate stateful runtime globals. (#2594) 8 years ago
Raymond Hettinger 64263dfd18 Fix terminology in comment and add more design rationale. (#3335) 8 years ago
INADA Naoki a6296d34a4 bpo-31095: fix potential crash during GC (GH-2974) 8 years ago
Serhiy Storchaka 6cca5c8459 bpo-30592: Fixed error messages for some builtins. (#1996) 9 years ago
Serhiy Storchaka bf623ae884 bpo-30061: Check if PyObject_Size()/PySequence_Size()/PyMapping_Size() (#1096) 9 years ago
INADA Naoki e82cf8675b bpo-29949: Fix set memory usage regression (GH-943) 9 years ago
Serhiy Storchaka 68a001dd59 Issue #29460: _PyArg_NoKeywords(), _PyArg_NoStackKeywords() and 9 years ago
Raymond Hettinger 5cd87a8d61 Reduce load factor (from 66% to 60%) to improve effectiveness of linear probing. 9 years ago
Raymond Hettinger e1af6964b4 Remove unnecessary variables. 9 years ago
Serhiy Storchaka 5ab81d787f Issue #28959: Added private macro PyDict_GET_SIZE for retrieving the size of dict. 9 years ago
Serhiy Storchaka 85b0f5beb1 Added the const qualifier to char* variables that refer to readonly internal 9 years ago
Serhiy Storchaka 06515833fe Replaced outdated macros _PyUnicode_AsString and _PyUnicode_AsStringAndSize 9 years ago
Raymond Hettinger 4103e4dfbc Issue #28071: Add early-out for differencing from an empty set. 9 years ago
Raymond Hettinger 8421d714d0 Removed unused initialization and the uninteresting comment. 10 years ago
Serhiy Storchaka fa070298e9 Issue #26880: Removed redundant checks in set.__init__. 10 years ago
Serhiy Storchaka fbb1c5ee06 Issue #26494: Fixed crash on iterating exhausting iterators. 10 years ago
Raymond Hettinger 3625af5f21 Moved misplaced functions to the section for C API functions. 10 years ago
Raymond Hettinger 2c257ab0f8 Responsibility for argument checking belongs in set.__init__() rather than set.__new__(). 10 years ago
Raymond Hettinger b72e21b9ab Speed-up construction of empty sets by approx 12-14%. 10 years ago
Raymond Hettinger f50215412c Add early-out for the common case where kwds is NULL (gives 1.1% speedup). 10 years ago
Benjamin Peterson 0e617e22f0 remove some copyright notices supserseded by the toplevel ones 10 years ago
Serhiy Storchaka 5c4064e8bd Issue #25421: __sizeof__ methods of builtin types now use dynamic basic size. 10 years ago
Raymond Hettinger e4495877dd Minor tweek. Counting down rather than up reduces register pressure. 10 years ago
Raymond Hettinger 86d322f020 Undo inadvertent line swap 10 years ago
Raymond Hettinger 5088f6005f Hoist constant expressions (so->table and so->mask) out of the inner-loop. 10 years ago
Raymond Hettinger 66f6238fca Add assertion to verify the pre-condition in the comments. 10 years ago
Raymond Hettinger 6019c8ced0 Issue #25629: Move set fill/used updates out of inner loop 10 years ago
Raymond Hettinger 4148195c45 Move the active entry multiplication to later in the hash calculation 11 years ago
Raymond Hettinger b501a27ad8 Restore frozenset hash caching removed in cf707dd190a9 11 years ago
Raymond Hettinger a286a51ae1 Fix comment typo 11 years ago
Raymond Hettinger 36c0500990 Tweak the comments 11 years ago
Raymond Hettinger fbffdef47d Issue #24762: Speed-up frozenset_hash() and greatly beef-up the comments. 11 years ago
Raymond Hettinger daffc916aa Issue #24681: Move the most likely test first in set_add_entry(). 11 years ago
Raymond Hettinger 70559b5c20 Issue #24681: Move the store of so->table to the code block where it is used. 11 years ago
Raymond Hettinger ff9e18a863 Issue #24583: Consolidate previous set object updates into a single function 11 years ago
Raymond Hettinger 482c05cbb5 Issue #24583: Fix refcount leak. 11 years ago
Raymond Hettinger 061091a7c5 Issue #24583: Fix crash when set is mutated while being updated. 11 years ago
Raymond Hettinger a3626bc5bd Issue #24583: Fix crash when set is mutated while being updated. 11 years ago
Raymond Hettinger 5d2385ff6f Neaten-up a little bit. 11 years ago
Raymond Hettinger 9632a7d735 Issue 24581: Revert c9782a9ac031 pending a stronger test for mutation during iteration. 11 years ago
Raymond Hettinger 11ce8e6c37 Minor bit of factoring-out common code. 11 years ago
Raymond Hettinger 3dbc11cadd Tighten-up code in the set iterator to use an entry pointer rather than indexing. 11 years ago