mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
gh-119219: Remove two obsolete TODOs. (#119223)
Remove two obsolete TODOs.
This commit is contained in:
parent
6f7dd0a426
commit
19c11f244e
1 changed files with 0 additions and 4 deletions
|
@ -6,9 +6,6 @@
|
||||||
Measurements with standard library modules suggest the average
|
Measurements with standard library modules suggest the average
|
||||||
allocation is about 20 bytes and that most compiles use a single
|
allocation is about 20 bytes and that most compiles use a single
|
||||||
block.
|
block.
|
||||||
|
|
||||||
TODO(jhylton): Think about a realloc API, maybe just for the last
|
|
||||||
allocation?
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define DEFAULT_BLOCK_SIZE 8192
|
#define DEFAULT_BLOCK_SIZE 8192
|
||||||
|
@ -108,7 +105,6 @@ block_alloc(block *b, size_t size)
|
||||||
/* If we need to allocate more memory than will fit in
|
/* If we need to allocate more memory than will fit in
|
||||||
the default block, allocate a one-off block that is
|
the default block, allocate a one-off block that is
|
||||||
exactly the right size. */
|
exactly the right size. */
|
||||||
/* TODO(jhylton): Think about space waste at end of block */
|
|
||||||
block *newbl = block_new(
|
block *newbl = block_new(
|
||||||
size < DEFAULT_BLOCK_SIZE ?
|
size < DEFAULT_BLOCK_SIZE ?
|
||||||
DEFAULT_BLOCK_SIZE : size);
|
DEFAULT_BLOCK_SIZE : size);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue