diff options
author | Jean Boussier <[email protected]> | 2024-10-29 15:03:42 +0100 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2024-11-01 13:04:24 +0900 |
commit | 5dc3b15b3c2c2f2c2cc5f1522f865b56574ae63f (patch) | |
tree | 4614a66afbb995bdb4a6b4ded261ae9099b32cf8 /lib/json | |
parent | b042d9d9c1e1d8855e40d27a799eb69781b779cd (diff) |
[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
Diffstat (limited to 'lib/json')
0 files changed, 0 insertions, 0 deletions