ruby/ext/json/generator
Jean Boussier 630c681321 [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.

4b04c469d5
2024-10-03 14:20:34 +09:00
..
depend ruby tool/update-deps --fix 2024-04-27 21:55:28 +09:00
extconf.rb [flori/json] Use the pure-Ruby generator on TruffleRuby as it is much faster 2024-06-04 14:44:43 +09:00
generator.c [flori/json] JSON.dump: avoid redundant UTF-8 validation 2024-10-03 14:20:34 +09:00
generator.h [flori/json] JSON.dump: avoid redundant UTF-8 validation 2024-10-03 14:20:34 +09:00