Skip to content

rust: Reduce CPU time by ~20%#11

Open
jturcotte wants to merge 1 commit intojurihock:mainfrom
jturcotte:main
Open

rust: Reduce CPU time by ~20%#11
jturcotte wants to merge 1 commit intojurihock:mainfrom
jturcotte:main

Conversation

@jturcotte
Copy link
Copy Markdown

Hi, I don't know if this is a change you'd want to integrate verbatim since it also needs to change the public API, but I thought that the findings are at least interesting to share.

The C++ implementation would likely get similar benefits from consolidating the per-bin data.

This reduces cache misses by having more data of the same
bin available on the same cache line.
@jurihock
Copy link
Copy Markdown
Owner

jurihock commented Jan 11, 2026

Nice, thanks! I'll take a closer look at it when I have more time...

May I ask what type of CPU you are using? Is it Intel, AMD or Apple Silicon?

@jturcotte
Copy link
Copy Markdown
Author

Sure, I ran this on an Intel i9-13900H.

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