]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-119219: Remove two obsolete TODOs. (#119223)
authorJeremy Hylton <32469542+jeremyhylton@users.noreply.github.com>
Mon, 20 May 2024 16:54:16 +0000 (12:54 -0400)
committerGitHub <noreply@github.com>
Mon, 20 May 2024 16:54:16 +0000 (16:54 +0000)
Remove two obsolete TODOs.

Python/pyarena.c

index ead03370d153c35fa464959a36d7961fc64b18a6..7ab370163b2b93f34f9787f9b2f0bcf6cebf1414 100644 (file)
@@ -6,9 +6,6 @@
    Measurements with standard library modules suggest the average
    allocation is about 20 bytes and that most compiles use a single
    block.
-
-   TODO(jhylton): Think about a realloc API, maybe just for the last
-   allocation?
 */
 
 #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
            the default block, allocate a one-off block that is
            exactly the right size. */
-        /* TODO(jhylton): Think about space waste at end of block */
         block *newbl = block_new(
                         size < DEFAULT_BLOCK_SIZE ?
                         DEFAULT_BLOCK_SIZE : size);