Skip to content

Comments

Fix struct alignments#1

Merged
tindzk merged 2 commits intomainfrom
fix/alignment
Nov 12, 2025
Merged

Fix struct alignments#1
tindzk merged 2 commits intomainfrom
fix/alignment

Conversation

@tindzk
Copy link
Owner

@tindzk tindzk commented Nov 11, 2025

Currently, BoundedStr and FixedStr have an alignment of 1 and may straddle cache lines.

Thanks to @RunDevelopment for pointing this out.

Reddit discussion: https://www.reddit.com/r/rust/comments/1ot9v7i/comment/no37jy6/

@tindzk tindzk merged commit 6ea7a1d into main Nov 12, 2025
1 check passed
@tindzk tindzk deleted the fix/alignment branch November 12, 2025 15:25
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