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

perf: remove trove map and added flags to Side #4961

Merged
merged 4 commits into from
Nov 29, 2021

Conversation

pollend
Copy link
Member

@pollend pollend commented Nov 20, 2021

I removed the map in SideBits and just defined the flag with sides. removes the book keeping with maintaining a map. I also changed some of the logic to just or the bits instead of add them together. addition is valid as long as there is no existing flags set else you end up doing a carry to the next field.

this is a compromise on this change: #4768

Copy link
Contributor

@DarkWeird DarkWeird left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should be performant then using troove's map.

@DarkWeird DarkWeird merged commit 31ecd97 into develop Nov 29, 2021
@DarkWeird DarkWeird deleted the perf/improve-sidebit-flags branch November 29, 2021 11:48
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