-
Notifications
You must be signed in to change notification settings - Fork 15.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reserve/InternalExtend use capacity instead of size as input.
This allows to remove branch from `InternalExtend` which is beneficial for small fields. Also refactored `UnsafeArenaAddAllocated` - it looks like it had an outdated comment. The function no longer deletes already allocated elements and hence does not need to be a template. PiperOrigin-RevId: 562530131
- Loading branch information
1 parent
8f1c050
commit fcd1cee
Showing
4 changed files
with
118 additions
and
203 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
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
Oops, something went wrong.