Project

General

Profile

« Previous | Next » 

Revision 5dc3b15b

Added by byroot (Jean Boussier) 8 months ago

[ruby/json] generator.c: store pretty strings in VALUE

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.

https://github.com/ruby/json/commit/6382c231b0