Skip to content

addAssumeNotIn for faster add - #32

Open
PauSolerValades wants to merge 1 commit into
deckarep:mainfrom
PauSolerValades:addAssumeNotIn
Open

addAssumeNotIn for faster add#32
PauSolerValades wants to merge 1 commit into
deckarep:mainfrom
PauSolerValades:addAssumeNotIn

Conversation

@PauSolerValades

Copy link
Copy Markdown
Contributor

Hello! I propose to add this function as an dangerous alternative to a faster add. It does not return a bool as it does not check if the element was there or not. I needed this to maximize performance in ReleaseFast, as putNoClobber in debug asserts a lot (slower) but in release skips the checks to return the bool.

I am porting this from my another repo which i was trying to get as much performance as possible :)

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