Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
python
/
cpython3
/
2abbd8f2add5e80b86a965625b9a77ae94a101cd
/
Modules
/
_collectionsmodule.c
3bb1987
Revert "bpo-40521: Remove freelist from collections.deque() (GH-21073)" (GH-24944)
by Raymond Hettinger
· 4 years, 5 months ago
448801d
bpo-41361: Optimized argument parsing for deque_rotate (GH-24796)
by Dennis Sweeney
· 4 years, 5 months ago
6b1ac80
bpo-25246: Optimize deque.remove() (GH-23898)
by Raymond Hettinger
· 4 years, 8 months ago
35b95aa
bpo-42161: Micro-optimize _collections._count_elements() (GH-23008)
by Victor Stinner
· 4 years, 10 months ago
3783413
bpo-42161: Modules/ uses _PyLong_GetZero() and _PyLong_GetOne() (GH-22998)
by Victor Stinner
· 4 years, 10 months ago
32f2eda
bpo-40521: Remove freelist from collections.deque() (GH-21073)
by Raymond Hettinger
· 5 years ago
a86b522
bpo-40277: Add a repr() to namedtuple's _tuplegetter to aid with introspection (GH-19537)
by Ammar Askar
· 5 years ago
4a21e57
bpo-40268: Remove unused structmember.h includes (GH-19530)
by Victor Stinner
· 5 years ago
48b069a
bpo-39481: Implementation for PEP 585 (#18239)
by Guido van Rossum
· 5 years ago
05e4a29
bpo-40024: Add PyModule_AddType() helper function (GH-19088)
by Dong-hee Na
· 5 years ago
77248a2
bpo-1635741: Port _collections module to multiphase initialization (GH-19074)
by Dong-hee Na
· 5 years ago
1dd3794
Simplify defaultdict.__or__ (#18931)
by Brandt Bucher
· 5 years ago
57c9d17
bpo-36144: Implement defaultdict union (GH-18729)
by Brandt Bucher
· 5 years ago
dffe4c0
bpo-39573: Finish converting to new Py_IS_TYPE() macro (GH-18601)
by Andy Lester
· 5 years ago
ffd9753
bpo-39245: Switch to public API for Vectorcall (GH-18460)
by Petr Viktorin
· 6 years ago
c6dedde
bpo-39590: make deque.__contains__ and deque.count hold strong references (GH-18421)
by sweeneyde
· 6 years ago
60ac6ed
bpo-39573: Use Py_SET_SIZE() function (GH-18402)
by Victor Stinner
· 6 years ago
daa9756
bpo-39573: Use Py_TYPE() macro in Modules directory (GH-18393)
by Victor Stinner
· 6 years ago
762f93f
bpo-37337: Add _PyObject_CallMethodNoArgs() (GH-14267)
by Jeroen Demeyer
· 6 years ago
7f41c8e
bpo-37493: use _PyObject_CallNoArg in more places (GH-14575)
by Jeroen Demeyer
· 6 years ago
196a530
bpo-37483: add _PyObject_CallOneArg() function (#14558)
by Jeroen Demeyer
· 6 years ago
e985804
bpo-37165: Convert _count_elements to the argument clinic (GH-13848)
by Raymond Hettinger
· 6 years ago
530f506
bpo-36974: tp_print -> tp_vectorcall_offset and tp_reserved -> tp_as_async (GH-13464)
by Jeroen Demeyer
· 6 years ago
d53fe5f
bpo-36254: Fix invalid uses of %d in format strings in C. (GH-12264)
by Serhiy Storchaka
· 6 years ago
adfffc7
Fix the C function signature for _collections._tuplegetter.__reduce__. (GH-12180)
by Serhiy Storchaka
· 6 years ago
359a2f3
bpo-33012: Fix compilation warnings in memoryobject.c and _collectionsmodule.c (GH-12179)
by Stéphane Wirtel
· 6 years ago
f36f892
bpo-36068: Make _tuplegetter objects serializable (GH-11981)
by Joe Jevnik
· 6 years ago
05f1b93
Speed-up argument parsing for common cases in deque.__init__()(GH-11717)
by Raymond Hettinger
· 7 years ago
052b2df
bpo-32492: Tweak _collections._tuplegetter. (GH-11367)
by Serhiy Storchaka
· 7 years ago
3f5fc70
bpo-32492: 1.6x speed up in namedtuple attribute access using C fast-path (#10495)
by Pablo Galindo
· 7 years ago
d4f9cf5
bpo-33029: Fix signatures of getter and setter functions. (GH-10746)
by Serhiy Storchaka
· 7 years ago
62be742
bpo-33012: Fix invalid function cast warnings with gcc 8. (GH-6749)
by Serhiy Storchaka
· 7 years ago
8152402
bpo-33012: Fix signatures of METH_NOARGS funstions. (GH-10736)
by Serhiy Storchaka
· 7 years ago
b46ad54
Minor performance tweak for deque.index() with a start argument (GH-9440)
by Raymond Hettinger
· 7 years ago
24bd50b
closes bpo-31608: Fix a crash in methods of a subclass of _collections.deque with a bad __new__(). (GH-3788)
by Oren Milman
· 7 years ago
66953f0
Factor-out two substantially identical code blocks. (GH-8219)
by Raymond Hettinger
· 7 years ago
a5c4228
bpo-33677: Fix signatures of tp_clear handlers for AST and deque. (GH-7196)
by Serhiy Storchaka
· 7 years ago
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
· 8 years ago
a5552f0
bpo-32240: Add the const qualifier to declarations of PyObject* array arguments. (#4746)
by Serhiy Storchaka
· 8 years ago
31aca4b
bpo-31586: Use _count_element fast path for real dicts.
by Oren Milman
· 8 years ago
b3a7796
bpo-27541: Reprs of subclasses of some classes now contain actual type name. (#3631)
by Serhiy Storchaka
· 8 years ago
e1b0287
Code clean-up. Remove unnecessary pre-increment before the loop starts. (#3312)
by Raymond Hettinger
· 8 years ago
a6296d3
bpo-31095: fix potential crash during GC (GH-2974)
by INADA Naoki
· 8 years ago
6969eaf
bpo-29464: Rename METH_FASTCALL to METH_FASTCALL|METH_KEYWORDS and make (#1955)
by Serhiy Storchaka
· 8 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
· 9 years ago
a24dca6
Fix typo
by Raymond Hettinger
· 9 years ago
7bfb42d
Issue #28858: Remove _PyObject_CallArg1() macro
by Victor Stinner
· 9 years ago
4778eab
Replace PyObject_CallFunction() with fastcall
by Victor Stinner
· 9 years ago
f0b311b
Issue #28123: _PyDict_GetItem_KnownHash() now can raise an exception as
by Serhiy Storchaka
· 9 years ago
8805717
Revert part of 3471a3515827 that caused a performance regression
by Raymond Hettinger
· 9 years ago
ad8c83a
Avoid inefficient way to call functions without argument
by Victor Stinner
· 9 years ago
17f0e61
- Modules/_collectionsmodule.c: Mark one more internal symbol as static.
by doko@ubuntu.com
· 9 years ago
bc73150
- make some internal symbols static
by doko@ubuntu.com
· 9 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
· 10 years ago
a638971
merge
by Raymond Hettinger
· 10 years ago
0ef0423
merge
by Raymond Hettinger
· 10 years ago
3743432
Issue #26194: Fix undefined behavior for deque.insert() when len(d) == maxlen
by Raymond Hettinger
· 10 years ago
306d6b1
Convert another post-decrement while-loop to pre-decrement for consistency
by Raymond Hettinger
· 10 years ago
165eee2
Convert two other post-decrement while-loops to pre-decrements for consistency
by Raymond Hettinger
· 10 years ago
d84ec22
Miscellaneous refactorings
by Raymond Hettinger
· 10 years ago
3e47a13
merge 3.5
by Benjamin Peterson
· 10 years ago
4e3dd51
merge 3.4
by Benjamin Peterson
· 10 years ago
630329e
merge 3.3
by Benjamin Peterson
· 10 years ago
0e617e2
remove some copyright notices supserseded by the toplevel ones
by Benjamin Peterson
· 10 years ago
1ed017a
Issue #20440: Cleaning up the code by using Py_SETREF and Py_CLEAR.
by Serhiy Storchaka
· 10 years ago
a9406e7
Issue #25421: __sizeof__ methods of builtin types now use dynamic basic size.
by Serhiy Storchaka
· 10 years ago
5c4064e
Issue #25421: __sizeof__ methods of builtin types now use dynamic basic size.
by Serhiy Storchaka
· 10 years ago
4a91d21
Neaten-up the inner-loop logic.
by Raymond Hettinger
· 10 years ago
df8f5b5
Minor cleanup.
by Raymond Hettinger
· 10 years ago
0bdf9ea
merge
by Raymond Hettinger
· 10 years ago
67b97b8
Move the initial start-search out of the main loop so it can be factored-out later.
by Raymond Hettinger
· 10 years ago
e56a919
Issue #25523: Merge a-to-an corrections from 3.5
by Martin Panter
· 10 years ago
d2ad571
Issue #25523: Further a-to-an corrections new in 3.5
by Martin Panter
· 10 years ago
db41fd4
Removed unused parameter
by Raymond Hettinger
· 10 years ago
0f43bb1
Only update the state variable once per iteration.
by Raymond Hettinger
· 10 years ago
20151f5
Issue #25414: Remove unnecessary tests that can never succeed.
by Raymond Hettinger
· 10 years ago
1eca237
Remove old Todo entry that isn't going to happen.
by Raymond Hettinger
· 10 years ago
a4b13d0
Rewrap comment.
by Raymond Hettinger
· 10 years ago
bc00341
Use unsigned division
by Raymond Hettinger
· 10 years ago
1286d14
Improve variable names and constant expressions
by Raymond Hettinger
· 10 years ago
965362e
Minor fixup. maxlen is already known.
by Raymond Hettinger
· 10 years ago
d96db09
Refactor the deque trim logic to eliminate the two separate trim functions.
by Raymond Hettinger
· 10 years ago
6b1e113
Hoist the deque->maxlen lookup out of the inner-loop.
by Raymond Hettinger
· 10 years ago
a7f63009
Minor tweak. Make the maxlen comparisons a little more clear and consistent.
by Raymond Hettinger
· 10 years ago
848f2b5
Backport early-out 91259f061cfb to reduce the cost of bb1a2944bcb6
by Raymond Hettinger
· 10 years ago
0443ac2
Eliminate unnecessary test
by Raymond Hettinger
· 10 years ago
fd265f4
Factor out common iterator finalization code
by Raymond Hettinger
· 10 years ago
0d30940
Add fast paths to deque_init() for the common cases
by Raymond Hettinger
· 10 years ago
3803114
Add an early-out for deque_clear()
by Raymond Hettinger
· 10 years ago
8299e9b
Move the copy and clear functions upwards to eliminate unnecessary forward references.
by Raymond Hettinger
· 10 years ago
7c0b70f
Minor tweak to the order of variable updates.
by Raymond Hettinger
· 10 years ago
f2b02ce
Bump up the maximum number of freeblocks
by Raymond Hettinger
· 10 years ago
Next »