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

Special case merging ArrayTagSets and TagLists #986

Merged
merged 1 commit into from Sep 11, 2022

Conversation

kilink
Copy link
Member

@kilink kilink commented Sep 10, 2022

Special case merging an ArrayTagSet with another to avoid the overhead of sorting, deduping, and copying. Since an ArrayTagSet is immutable is already sorted and deduped, we can skip directly to merging.

Additionally, add handling for merging of an ArrayTagSet with a TagList, where we can avoid some extra copying and allocating of Tags.

Special case merging an ArrayTagSet with another to avoid the overhead of sorting, deduping,
and copying. Since an ArrayTagSet is immutable is already sorted and deduped, we can skip
directly to merging.

Additionally, add handling for merging of an ArrayTagSet with a TagList, where we can avoid
some extra copying and allocating of Tags.
@brharrington brharrington added this to the 1.3.8 milestone Sep 11, 2022
@brharrington brharrington merged commit 42cc39b into main Sep 11, 2022
@brharrington brharrington deleted the array-tag-set-merge-optimization branch September 11, 2022 00:15
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.

None yet

2 participants