Skip to content

Reuse allocations across multiple runs in multi-threading#1233

Merged
LaurenzV merged 5 commits into
mainfrom
laurenz/mt_opt
Sep 19, 2025
Merged

Reuse allocations across multiple runs in multi-threading#1233
LaurenzV merged 5 commits into
mainfrom
laurenz/mt_opt

Conversation

@LaurenzV

Copy link
Copy Markdown
Collaborator

@taj-p Thanks for the suggestion, has a nice performance impact!!

image image image image

@LaurenzV LaurenzV requested a review from taj-p September 18, 2025 10:42

@taj-p taj-p left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great to me! 🚀

}
}

fn put(&mut self, allocation: AllocationGroup) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: We could assert that we haven't allocated a huge number of stored allocations (to help detect leaks due to regression) or test that 1 send causes a get and 1 run_coarse causes a put

@LaurenzV LaurenzV added this pull request to the merge queue Sep 19, 2025
Merged via the queue into main with commit 71cf9e7 Sep 19, 2025
17 checks passed
@LaurenzV LaurenzV deleted the laurenz/mt_opt branch September 19, 2025 09:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants