Skip to content

Reuse sorted Punycode input order - #36

Open
OskarEichler wants to merge 1 commit into
knu:masterfrom
OskarEichler:codex/reuse-punycode-order
Open

Reuse sorted Punycode input order#36
OskarEichler wants to merge 1 commit into
knu:masterfrom
OskarEichler:codex/reuse-punycode-order

Conversation

@OskarEichler

Copy link
Copy Markdown
Contributor

Summary

Compute the sorted unique non-basic code points once for the Punycode encoding loop instead of rescanning the complete input to find the next value on every iteration.

Verification

  • Ruby 4.0.6 and 3.2.11: 11 tests / 642 assertions, zero failures/errors
  • RFC vectors and extended IDN models pass
  • focused ordering benchmark and syntax checks pass

Source-only patch; no tests included.

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