ruby / json

JSON implementation for Ruby
https://ruby.github.io/json
Other
704 stars 333 forks source link

generator.c: store pretty strings in VALUE #661

Closed casperisfine closed 3 weeks ago

casperisfine commented 3 weeks ago

Given we expect these to almost always be null, we might as well keep them in RString.

And even when provided, assuming we're passed frozen strings we'll save on copying them.

This also reduce the size of the struct from 112B to 72B.