Skip to content
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

Reorder reads and writes for itemstats aggregation. #1136

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

Conversation

aractnido
Copy link
Contributor

Reorder reads and writes for itemstats aggregation to leverage SIMD instructions, improving code generation by ensuring that the variables are accessed in the order they are declared in memory. This change optimizes data locality and enhances the compiler's ability to generate efficient vectorized code.

See https://godbolt.org/z/7GGEM1e7j for a comparison of the generated assembly.

No functional changes.

dormando and others added 2 commits May 10, 2024 13:12
If running a fetch request without returning the result upstream to the
user, a successfully fetched item would leak its reference.
@dormando
Copy link
Member

This is cool, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants