-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reduce slice allocations during unique insertions
Just reduce some really easy to avoid slice allocations for every unique insertion: * No reason to have `requiredV3states` allocated every time a new unique opts is validated. It never changes. * Leave `missingStates` unallocated by default. Most of the time a unique insertion will have have no missing unique states, so this skips a unique allocation completely the overwhelmingly majority of the time.
- Loading branch information
Showing
2 changed files
with
9 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters