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

Kotlin/JS - Unify PerCharacterEscaper #420

Merged
merged 5 commits into from
Jun 4, 2024
Merged

Conversation

nedtwigg
Copy link
Member

@nedtwigg nedtwigg commented Jun 4, 2024

Previously, the JVM and JS implementations of PerCharacterEscaper were totally separate, even though almost all of their code was identical. In this PR, we mush them back together.

We also get a small performance boost because we are able to avoid allocating tiny arrays and just stuff everything into the StringBuilder where it's all going to end up anyway.

@nedtwigg nedtwigg changed the base branch from main to feat/js June 4, 2024 06:39
@nedtwigg nedtwigg changed the title Unify PerCharacterEscaper Kotlin/JS - Unify PerCharacterEscaper Jun 4, 2024
@nedtwigg nedtwigg marked this pull request as ready for review June 4, 2024 06:40
Base automatically changed from feat/js to main June 4, 2024 06:54
@nedtwigg nedtwigg merged commit d3b55fe into main Jun 4, 2024
6 checks passed
@nedtwigg nedtwigg deleted the feat/perchracter-unify branch June 4, 2024 06:55
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