diff options
| author | Jean Boussier <jean.boussier@gmail.com> | 2024-09-02 09:41:01 +0200 |
|---|---|---|
| committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2024-10-03 14:20:34 +0900 |
| commit | 630c681321cd247a55360e52743a5d706cd46bcb (patch) | |
| tree | e6fb285bbbb4968b8c3139b17ccc4d057cbafb2d /include/ruby/debug.h | |
| parent | 835ac8a4d7f01854dc45061301a1fc091f7bab3d (diff) | |
[flori/json] JSON.dump: avoid redundant UTF-8 validation
Given that we called `rb_enc_str_asciionly_p`, if the string encoding
isn't valid UTF-8, we can't know it very cheaply by checking the
encoding and coderange that was just computed by Ruby, rather than
to do it ourselves.
Also Ruby might have already computed that earlier.
https://github.com/flori/json/commit/4b04c469d5
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/11775
Diffstat (limited to 'include/ruby/debug.h')
0 files changed, 0 insertions, 0 deletions
