Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
python
/
cpython3
/
5d6c7ed5e340b2311a15f34e968d4bef09c71922
/
Modules
/
_collectionsmodule.c
55edd0c
bpo-33012: Fix invalid function cast warnings with gcc 8 for METH_NOARGS. (GH-6030)
by Siddhesh Poyarekar
· 7 years ago
f320be7
bpo-32571: Avoid raising unneeded AttributeError and silencing it in C code (GH-5222)
by Serhiy Storchaka
· 7 years ago
a5552f0
bpo-32240: Add the const qualifier to declarations of PyObject* array arguments. (#4746)
by Serhiy Storchaka
· 7 years ago
31aca4b
bpo-31586: Use _count_element fast path for real dicts.
by Oren Milman
· 7 years ago
b3a7796
bpo-27541: Reprs of subclasses of some classes now contain actual type name. (#3631)
by Serhiy Storchaka
· 7 years ago
e1b0287
Code clean-up. Remove unnecessary pre-increment before the loop starts. (#3312)
by Raymond Hettinger
· 7 years ago
a6296d3
bpo-31095: fix potential crash during GC (GH-2974)
by INADA Naoki
· 7 years ago
6969eaf
bpo-29464: Rename METH_FASTCALL to METH_FASTCALL|METH_KEYWORDS and make (#1955)
by Serhiy Storchaka
· 7 years ago
d4edfc9
bpo-29935: Fixed error messages in the index() method of tuple, list and deque (#887)
by Serhiy Storchaka
· 8 years ago
ba85d69
bpo-29878: Add global instances of int for 0 and 1. (#852)
by Serhiy Storchaka
· 8 years ago
357bad7
bpo-29634: Reduce deque repeat execution when maxlen exist and size is not 1 (#255) (#255)
by Louie Lu
· 8 years ago
dd407d5
Optimize deque index, insert and rotate() methods
by Victor Stinner
· 8 years ago
a24dca6
Fix typo
by Raymond Hettinger
· 8 years ago
7bfb42d
Issue #28858: Remove _PyObject_CallArg1() macro
by Victor Stinner
· 8 years ago
4778eab
Replace PyObject_CallFunction() with fastcall
by Victor Stinner
· 8 years ago
f0b311b
Issue #28123: _PyDict_GetItem_KnownHash() now can raise an exception as
by Serhiy Storchaka
· 8 years ago
8805717
Revert part of 3471a3515827 that caused a performance regression
by Raymond Hettinger
· 8 years ago
ad8c83a
Avoid inefficient way to call functions without argument
by Victor Stinner
· 8 years ago
17f0e61
- Modules/_collectionsmodule.c: Mark one more internal symbol as static.
by doko@ubuntu.com
· 8 years ago
bc73150
- make some internal symbols static
by doko@ubuntu.com
· 8 years ago
a0d416f
Issue #26482: Allowed pickling recursive dequeues.
by Serhiy Storchaka
· 9 years ago
d79d5b1
More logicial order. Move space saving step to just before it is used.
by Raymond Hettinger
· 9 years ago
6f86a33
Factor-out common subexpression.
by Raymond Hettinger
· 9 years ago
589106b
Put block length computations in a more logical order.
by Raymond Hettinger
· 9 years ago
3841866
Issue #26200: The SETREF macro adds unnecessary work in some cases.
by Raymond Hettinger
· 9 years ago
a638971
merge
by Raymond Hettinger
· 9 years ago
0ef0423
merge
by Raymond Hettinger
· 9 years ago
3743432
Issue #26194: Fix undefined behavior for deque.insert() when len(d) == maxlen
by Raymond Hettinger
· 9 years ago
306d6b1
Convert another post-decrement while-loop to pre-decrement for consistency
by Raymond Hettinger
· 9 years ago
165eee2
Convert two other post-decrement while-loops to pre-decrements for consistency
by Raymond Hettinger
· 9 years ago
d84ec22
Miscellaneous refactorings
by Raymond Hettinger
· 9 years ago
3e47a13
merge 3.5
by Benjamin Peterson
· 9 years ago
4e3dd51
merge 3.4
by Benjamin Peterson
· 9 years ago
630329e
merge 3.3
by Benjamin Peterson
· 9 years ago
0e617e2
remove some copyright notices supserseded by the toplevel ones
by Benjamin Peterson
· 9 years ago
1ed017a
Issue #20440: Cleaning up the code by using Py_SETREF and Py_CLEAR.
by Serhiy Storchaka
· 9 years ago
a9406e7
Issue #25421: __sizeof__ methods of builtin types now use dynamic basic size.
by Serhiy Storchaka
· 9 years ago
5c4064e
Issue #25421: __sizeof__ methods of builtin types now use dynamic basic size.
by Serhiy Storchaka
· 9 years ago
4a91d21
Neaten-up the inner-loop logic.
by Raymond Hettinger
· 9 years ago
df8f5b5
Minor cleanup.
by Raymond Hettinger
· 9 years ago
0bdf9ea
merge
by Raymond Hettinger
· 9 years ago
67b97b8
Move the initial start-search out of the main loop so it can be factored-out later.
by Raymond Hettinger
· 9 years ago
e56a919
Issue #25523: Merge a-to-an corrections from 3.5
by Martin Panter
· 9 years ago
d2ad571
Issue #25523: Further a-to-an corrections new in 3.5
by Martin Panter
· 9 years ago
db41fd4
Removed unused parameter
by Raymond Hettinger
· 9 years ago
0f43bb1
Only update the state variable once per iteration.
by Raymond Hettinger
· 9 years ago
20151f5
Issue #25414: Remove unnecessary tests that can never succeed.
by Raymond Hettinger
· 9 years ago
1eca237
Remove old Todo entry that isn't going to happen.
by Raymond Hettinger
· 9 years ago
a4b13d0
Rewrap comment.
by Raymond Hettinger
· 9 years ago
bc00341
Use unsigned division
by Raymond Hettinger
· 9 years ago
1286d14
Improve variable names and constant expressions
by Raymond Hettinger
· 9 years ago
965362e
Minor fixup. maxlen is already known.
by Raymond Hettinger
· 9 years ago
d96db09
Refactor the deque trim logic to eliminate the two separate trim functions.
by Raymond Hettinger
· 9 years ago
6b1e113
Hoist the deque->maxlen lookup out of the inner-loop.
by Raymond Hettinger
· 9 years ago
a7f63009
Minor tweak. Make the maxlen comparisons a little more clear and consistent.
by Raymond Hettinger
· 9 years ago
848f2b5
Backport early-out 91259f061cfb to reduce the cost of bb1a2944bcb6
by Raymond Hettinger
· 9 years ago
0443ac2
Eliminate unnecessary test
by Raymond Hettinger
· 9 years ago
fd265f4
Factor out common iterator finalization code
by Raymond Hettinger
· 9 years ago
0d30940
Add fast paths to deque_init() for the common cases
by Raymond Hettinger
· 9 years ago
3803114
Add an early-out for deque_clear()
by Raymond Hettinger
· 9 years ago
8299e9b
Move the copy and clear functions upwards to eliminate unnecessary forward references.
by Raymond Hettinger
· 9 years ago
7c0b70f
Minor tweak to the order of variable updates.
by Raymond Hettinger
· 9 years ago
f2b02ce
Bump up the maximum number of freeblocks
by Raymond Hettinger
· 9 years ago
c22eee6
Precomputing the number iterations allows the inner-loop to be vectorizable.
by Raymond Hettinger
· 9 years ago
7a84552
Hoist constant expression out of an inner loop.
by Raymond Hettinger
· 9 years ago
e055b88
merge
by Raymond Hettinger
· 9 years ago
bf49fee
Issue #25135: Avoid possible reentrancy issues in deque_clear.
by Raymond Hettinger
· 9 years ago
2b0d646
Replace an unpredictable branch with a simple addition.
by Raymond Hettinger
· 9 years ago
3a1a8d0
Eliminate unnecessary variables
by Raymond Hettinger
· 9 years ago
7a23723
Eliminate unnecessary variable
by Raymond Hettinger
· 9 years ago
d3d2b2c
Minor consistency improvements to negative value comparisons.
by Raymond Hettinger
· 9 years ago
aed8830
Add a fast path (no iterator creation) for a common case for repeating deques of size 1
by Raymond Hettinger
· 9 years ago
0e14e66
Hoist constant expression out of an inner loop
by Raymond Hettinger
· 9 years ago
ad26225
Tighten inner-loop for deque_inplace_repeat().
by Raymond Hettinger
· 9 years ago
e4f3467
Add an exact type match fast path for deque_copy().
by Raymond Hettinger
· 9 years ago
95e2cc5
Fix refcount.
by Raymond Hettinger
· 9 years ago
67c78b5
In-line the append operations inside deque_inplace_repeat().
by Raymond Hettinger
· 9 years ago
f5d72f3
Simply deque repeat by reusing code in in-line repeat. Avoid unnecessary division.
by Raymond Hettinger
· 9 years ago
318c5ae
merge
by Raymond Hettinger
· 9 years ago
2b2b753
Prevent reentrant badness by deferring the decrefs as long as possible.
by Raymond Hettinger
· 9 years ago
7a1a0bb
merge
by Raymond Hettinger
· 9 years ago
87674ec
Issue #24913: Fix overrun error in deque.index().
by Raymond Hettinger
· 9 years ago
28c995d
Minor cleanup.
by Raymond Hettinger
· 9 years ago
12f896c
Fix minor typo in a comment
by Raymond Hettinger
· 9 years ago
aa23fa2
merge
by Raymond Hettinger
· 9 years ago
043e800
merge
by Raymond Hettinger
· 9 years ago
239aba7
Issue #19663: Improve error message for defaultdict.
by Raymond Hettinger
· 9 years ago
cfe5b6c
Divisions-by-two for a positive Py_ssize_t compile more cleanly with >>1 than /2.
by Raymond Hettinger
· 9 years ago
96c6af9
Issue #16991: Add a C implementation of collections.OrderedDict.
by Eric Snow
· 9 years ago
47db717
Issue #16991: Add a C implementation of collections.OrderedDict.
by Eric Snow
· 9 years ago
c6249a6
Defer deleted item decref until after the deque is restored to a consistent state.
by Raymond Hettinger
· 10 years ago
1a62921
fix refleak in deque_concat
by Benjamin Peterson
· 10 years ago
41290a6
Issue 23793: Add deque support for __add__(), __mul__(), and __imul__().
by Raymond Hettinger
· 10 years ago
fef9c1b
Fix typo
by Raymond Hettinger
· 10 years ago
8dbbae2
Minor code and comment cleanups.
by Raymond Hettinger
· 10 years ago
551350a
Improve and fix-up comments.
by Raymond Hettinger
· 10 years ago
0f1451c
Issue 23744: Minor speed-up for deque.__bool__().
by Raymond Hettinger
· 10 years ago
6921c13
Minor nit. Make the rotate() success/fail tests consistent.
by Raymond Hettinger
· 10 years ago
ac13ad6
For safety, wait to decref deleted values until the deque state has been restored.
by Raymond Hettinger
· 10 years ago
0f6f947
Fix minor formatting nits and remove unnecessary comment.
by Raymond Hettinger
· 10 years ago
Next »