187 Commits (4eebf8477a20b256eccfbcd0fd9ef144f4c7e2af)

Author SHA1 Message Date
Raymond Hettinger 88057171f0 Revert part of 3471a3515827 that caused a performance regression 10 years ago
Victor Stinner ad8c83ad6b Avoid inefficient way to call functions without argument 10 years ago
doko@ubuntu.com 17f0e61891 - Modules/_collectionsmodule.c: Mark one more internal symbol as static. 10 years ago
doko@ubuntu.com bc7315068f - make some internal symbols static 10 years ago
Serhiy Storchaka a0d416f0d1 Issue #26482: Allowed pickling recursive dequeues. 10 years ago
Raymond Hettinger d79d5b1a50 More logicial order. Move space saving step to just before it is used. 10 years ago
Raymond Hettinger 6f86a3308a Factor-out common subexpression. 10 years ago
Raymond Hettinger 589106b206 Put block length computations in a more logical order. 10 years ago
Raymond Hettinger 38418662e0 Issue #26200: The SETREF macro adds unnecessary work in some cases. 10 years ago
Raymond Hettinger a63897164e merge 11 years ago
Raymond Hettinger b00da57561 Issue #26194: Inserting into a full deque to raise an IndexError 11 years ago
Raymond Hettinger 3743432302 Issue #26194: Fix undefined behavior for deque.insert() when len(d) == maxlen 11 years ago
Raymond Hettinger 306d6b1ea6 Convert another post-decrement while-loop to pre-decrement for consistency 11 years ago
Raymond Hettinger 165eee214b Convert two other post-decrement while-loops to pre-decrements for consistency 11 years ago
Raymond Hettinger d84ec225bd Miscellaneous refactorings 11 years ago
Benjamin Peterson 0e617e22f0 remove some copyright notices supserseded by the toplevel ones 11 years ago
Serhiy Storchaka 1ed017ae92 Issue #20440: Cleaning up the code by using Py_SETREF and Py_CLEAR. 11 years ago
Serhiy Storchaka 5c4064e8bd Issue #25421: __sizeof__ methods of builtin types now use dynamic basic size. 11 years ago
Raymond Hettinger 4a91d21381 Neaten-up the inner-loop logic. 11 years ago
Raymond Hettinger df8f5b56c9 Minor cleanup. 11 years ago
Raymond Hettinger 67b97b8f8d Move the initial start-search out of the main loop so it can be factored-out later. 11 years ago
Martin Panter d2ad5718ad Issue #25523: Further a-to-an corrections new in 3.5 11 years ago
Raymond Hettinger db41fd43cf Removed unused parameter 11 years ago
Raymond Hettinger 0f43bb160e Only update the state variable once per iteration. 11 years ago
Raymond Hettinger 20151f50f6 Issue #25414: Remove unnecessary tests that can never succeed. 11 years ago
Raymond Hettinger 1eca237c2f Remove old Todo entry that isn't going to happen. 11 years ago
Raymond Hettinger a4b13d0020 Rewrap comment. 11 years ago
Raymond Hettinger bc00341105 Use unsigned division 11 years ago
Raymond Hettinger 1286d14500 Improve variable names and constant expressions 11 years ago
Raymond Hettinger 965362e92d Minor fixup. maxlen is already known. 11 years ago
Raymond Hettinger d96db09b57 Refactor the deque trim logic to eliminate the two separate trim functions. 11 years ago
Raymond Hettinger 6b1e113f9f Hoist the deque->maxlen lookup out of the inner-loop. 11 years ago
Raymond Hettinger a7f63009d6 Minor tweak. Make the maxlen comparisons a little more clear and consistent. 11 years ago
Raymond Hettinger 848f2b595d Backport early-out 91259f061cfb to reduce the cost of bb1a2944bcb6 11 years ago
Raymond Hettinger 0443ac2860 Eliminate unnecessary test 11 years ago
Raymond Hettinger fd265f4a18 Factor out common iterator finalization code 11 years ago
Raymond Hettinger 0d30940dd2 Add fast paths to deque_init() for the common cases 11 years ago
Raymond Hettinger 38031143fb Add an early-out for deque_clear() 11 years ago
Raymond Hettinger 8299e9b59e Move the copy and clear functions upwards to eliminate unnecessary forward references. 11 years ago
Raymond Hettinger 7c0b70f419 Minor tweak to the order of variable updates. 11 years ago
Raymond Hettinger f2b02ced7e Bump up the maximum number of freeblocks 11 years ago
Raymond Hettinger c22eee6b59 Precomputing the number iterations allows the inner-loop to be vectorizable. 11 years ago
Raymond Hettinger 7a84552c84 Hoist constant expression out of an inner loop. 11 years ago
Raymond Hettinger bf49fee125 Issue #25135: Avoid possible reentrancy issues in deque_clear. 11 years ago
Raymond Hettinger 2b0d646b75 Replace an unpredictable branch with a simple addition. 11 years ago
Raymond Hettinger 3a1a8d0424 Eliminate unnecessary variables 11 years ago
Raymond Hettinger 7a237230d1 Eliminate unnecessary variable 11 years ago
Raymond Hettinger d3d2b2c50c Minor consistency improvements to negative value comparisons. 11 years ago
Raymond Hettinger aed8830af3 Add a fast path (no iterator creation) for a common case for repeating deques of size 1 11 years ago
Raymond Hettinger 0e14e6610b Hoist constant expression out of an inner loop 11 years ago