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

align Cell.data.Part fields by 8 bits and enlarge Cell structure to 8 bytes #2261

Merged
merged 3 commits into from
Feb 18, 2024

Conversation

Gamemechanicwow
Copy link
Contributor

@Gamemechanicwow Gamemechanicwow commented Nov 4, 2023

🍰 Pullrequest

All credits to @Lordron - TrinityCore/TrinityCore#29371

Aligns cell struct for better performance.

Proof

Compiler explorer example with pre and post pr example code.
https://godbolt.org/z/n7a8TP9Wz

Issues

  • None

How2Test

  • None

Todo / Checklist

  • None

@ratkosrb
Copy link
Contributor

ratkosrb commented Nov 4, 2023

I saw this PR but it isn't merged in TC yet so I was waiting to see what people say there.

@ratkosrb ratkosrb merged commit c89aea3 into vmangos:development Feb 18, 2024
3 checks passed
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