Skip to content

♻️ Avoid unnecessary allocation in SequenceSet[] #492

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

Merged
merged 1 commit into from
Jun 18, 2025

Conversation

nevans
Copy link
Collaborator

@nevans nevans commented Jun 18, 2025

This updates SequenceSet[] so a frozen result from input.to_sequence_set is returned directly, not duplicated.

It is also updated to delegate to SequenceSet.try_convert.

This updates the behavior of `SequenceSet[]` so that a frozen result
from `input.to_sequence_set` is returned directly, not duplicated.

It is also updated to delegate to `SequenceSet.try_convert`.
@nevans nevans merged commit 55f5ca1 into master Jun 18, 2025
37 checks passed
@nevans nevans deleted the sequence_set/avoid-allocation-after-frozen-coercion branch June 18, 2025 14:32
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