We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f7dd0a commit 19c11f2Copy full SHA for 19c11f2
Python/pyarena.c
@@ -6,9 +6,6 @@
6
Measurements with standard library modules suggest the average
7
allocation is about 20 bytes and that most compiles use a single
8
block.
9
-
10
- TODO(jhylton): Think about a realloc API, maybe just for the last
11
- allocation?
12
*/
13
14
#define DEFAULT_BLOCK_SIZE 8192
@@ -108,7 +105,6 @@ block_alloc(block *b, size_t size)
108
105
/* If we need to allocate more memory than will fit in
109
106
the default block, allocate a one-off block that is
110
107
exactly the right size. */
111
- /* TODO(jhylton): Think about space waste at end of block */
112
block *newbl = block_new(
113
size < DEFAULT_BLOCK_SIZE ?
114
DEFAULT_BLOCK_SIZE : size);
0 commit comments