Skip to content

Cache line size is 128 bytes on Apple M series CPUs#169

Merged
tzcnt merged 10 commits intomainfrom
mac-tuning
Jan 12, 2026
Merged

Cache line size is 128 bytes on Apple M series CPUs#169
tzcnt merged 10 commits intomainfrom
mac-tuning

Conversation

@tzcnt
Copy link
Copy Markdown
Owner

@tzcnt tzcnt commented Jan 12, 2026

Per https://stackoverflow.com/questions/79579748/is-stdhardware-destructive-interference-size-right-for-macs

The cache line size on Apple M is 128. This has been updated on Clang upstream, but not yet on the latest Apple Clang. So we have to set the value to 128 manually. This offers a substantial performance uplift on Apple M processors in the benchmarks.

@tzcnt tzcnt merged commit df15162 into main Jan 12, 2026
40 checks passed
@tzcnt tzcnt deleted the mac-tuning branch January 12, 2026 03:44
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.

1 participant