8000 bpo-37543: optimize pymalloc by methane · Pull Request #14674 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-37543: optimize pymalloc #14674

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 8 commits into from
Jul 17, 2019
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
add comment to allocate_from_new_pool
  • Loading branch information
methane committed Jul 12, 2019
commit 838fe6ffab3969887280f3e3d6aaa53c52891a03
5 changes: 4 additions & 1 deletion Objects/obmalloc.c
7307
Original file line number Diff line number Diff line change
Expand Up @@ -1445,8 +1445,11 @@ pymalloc_pool_extend(poolp pool, uint size)
pool->nextpool = next;
}

/* called when pymalloc_alloc can not allocate a block from usedpool.
* This function takes new pool and allocate a block from it.
*/
static void*
allocate_from_new_pool(size_t size)
allocate_from_new_pool(uint size)
{
/* There isn't a pool of the right size class immediately
* available: use a free pool.
Expand Down
0