Skip to content

Improve cache locality#23

Open
kemchenj wants to merge 1 commit intorahul-goel:mainfrom
kemchenj:perf/cache-friendly
Open

Improve cache locality#23
kemchenj wants to merge 1 commit intorahul-goel:mainfrom
kemchenj:perf/cache-friendly

Conversation

@kemchenj
Copy link

No description provided.

@kemchenj kemchenj changed the title Optimize sData layout to improve cache locality. Tweak sData layout to improve cache locality. Aug 30, 2025
@kemchenj kemchenj changed the title Tweak sData layout to improve cache locality. Improve cache locality Sep 11, 2025
@kemchenj kemchenj force-pushed the perf/cache-friendly branch from aa5e86f to c074ce7 Compare October 28, 2025 10:22
@rahul-goel
Copy link
Owner

Hi. I remember trying something similar earlier but I didn't observe any change in performance at that time. Do you observe an improvement in performance? By how much on what machine?

@kemchenj
Copy link
Author

kemchenj commented Dec 4, 2025

To be honest, this change doesn't show any measurable performance improvement in my testing. However, at lease for me, I believe it makes the code somewhat easier to understand and reason about.

That said, the original code might have been intentional for other reasons I'm not aware of - it really depends on the specific design considerations you had in mind.

If you prefer the current implementation, I completely understand and I'm happy to close this PR.

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