Skip to content

♻️ Short-circuit frozen SequenceSet modifications #473

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
May 6, 2025

Conversation

nevans
Copy link
Collaborator

@nevans nevans commented May 5, 2025

Short-circuit frozen SequenceSet modifications for two reasons:

  • Skip coercing inputs or calling (relatively expensive) query methods.
  • Normalize the output for JRuby, which doesn't appear to use #inspect for its built-in frozen error (see Add JRuby and TruffleRuby to CI #454).

Short-circuit frozen SequenceSet modifications does two things:
* avoids unnecessarily coercing inputs or calling query methods
* normalizes the output for JRuby
@nevans nevans merged commit f117dbd into master May 6, 2025
35 of 37 checks passed
@nevans nevans deleted the sequence_set/modifying branch May 6, 2025 15:16
@nevans nevans changed the title ✅ Short-circuit frozen SequenceSet modifications ♻️ Short-circuit frozen SequenceSet modifications May 8, 2025
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