Skip to content

Use Btree Map Entry To Avoid Duplicated Work #526

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

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

krakow10
Copy link
Contributor

@krakow10 krakow10 commented May 3, 2025

The first commit is easier to read than the formatting one. This is better because btree_map::Entry stores an open "Bucket" so the .insert operation does not have to search for an open entry again. Potentially gains 10% on "100 100-line ModuleScripts/Serialize" benchmark (unreliable?) but not much else changes.

@Dekkonot
Copy link
Member

Dekkonot commented May 4, 2025

This doesn't seem to improve performance at all on my system, but I also had to make patches to it to make it actually run. Is this the code you're testing?

@krakow10
Copy link
Contributor Author

krakow10 commented May 4, 2025

Ah, I built the two pairs of commits separately, but never together. The first commit showed the higher throughput, but the second two didn't seem to have an impact. I ran another benchmark for this and got the weird 70% result so I posted it to #529 (comment)

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