-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid allocating extra space when overriding tag (#1000)
Change ArrayTagSet::add to avoid allocating extra space when an existing tag is being overridden, and to avoid creating a new ArrayTagSet at all if the supplied key/value pair already exists in the target ArrayTagSet. Additionally, switch to System.arraycopy instead of manually copying to the newly created array.
- Loading branch information
Showing
2 changed files
with
61 additions
and
20 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