mirror of
https://github.com/ruby/ruby.git
synced 2026-08-29 15:45:44 +08:00
And move the encoding convertion logic in another function with NOINLINE. The overwelming majority of strings are correctly encoded, so we want to inline the very cheap check, however we don't want to inline the much larger piece of code required to re-encode the string. https://github.com/ruby/json/commit/cfbe356b4f Co-Authored-By: Jean Boussier <jean.boussier@gmail.com>