[ruby/json] Use RB_ENCODING_GET instead of rb_enc_get to improve performance
RB_ENCODING_GET
rb_enc_get
This speeds up JSON.generate by about 12% in a benchmark.
JSON.generate
https://github.com/ruby/json/commit/4329e30826
[ruby/json] Use
RB_ENCODING_GET
instead ofrb_enc_get
to improve performanceThis speeds up
JSON.generate
by about 12% in a benchmark.https://github.com/ruby/json/commit/4329e30826