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

Optimize and cleanup JSON::TruffleRuby::Generator.utf8_to_json #744

Merged
merged 1 commit into from
Feb 5, 2025

Conversation

eregon
Copy link
Member

@eregon eregon commented Feb 4, 2025

  • Using the same logic as in #fast_serialize_string.
  • Avoid extra .force_encoding/.b, the input is already a UTF-8 String.
  • //n on UTF-8 strings was causing warnings (unless $VERBOSE is nil).

* Using the same logic as in #fast_serialize_string.
* Avoid extra .force_encoding/.b, the input is already a UTF-8 String.
* //n on UTF-8 strings was causing warnings (unless $VERBOSE is nil).
@eregon eregon requested a review from byroot February 4, 2025 21:37
@byroot byroot merged commit c472d72 into ruby:master Feb 5, 2025
33 checks passed
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.

2 participants