Scott Myron c568944b8f [ruby/json] Force ensure_valid_encoding to be inlined.
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>
2026-04-20 12:56:53 +00:00
..
2025-11-03 07:39:00 -08:00
2026-03-24 07:35:33 +00:00