Skip to content

gh-119219: Remove two obsolete TODOs. #119223

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions Python/pyarena.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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);
Expand Down
Loading