8000 Clarify about freelists a little. · python/cpython@11a9311 · GitHub
[go: up one dir, main page]

Skip to content

Commit 11a9311

Browse files
Clarify about freelists a little.
1 parent 4ac3d66 commit 11a9311

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Include/internal/pycore_tuple.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,18 @@ extern void _PyTuple_Fini(PyInterpreterState *);
2424
// PyTuple_MAXFREELIST - maximum number of tuples of each size to save
2525

2626
#if PyTuple_MAXSAVESIZE <= 0
27-
// A build indicated that no tuple freelists should be used.
27+
// A build indicated that tuple freelists should not be used.
2828
# define PyTuple_NFREELISTS 0
2929
# undef PyTuple_MAXSAVESIZE
30+
# undef PyTuple_MAXFREELIST
3031

3132
#elif !defined(WITH_FREELISTS)
3233
# define PyTuple_NFREELISTS 0
34+
# undef PyTuple_MAXSAVESIZE
35+
# undef PyTuple_MAXFREELIST
3336

3437
#else
38+
// We are using a freelist for tuples.
3539
# ifndef PyTuple_MAXSAVESIZE
3640
# define PyTuple_MAXSAVESIZE 20
3741
# endif

0 commit comments

Comments
 (0)
0