Skip to content

Conversation

@byroot
Copy link

@byroot byroot commented Nov 13, 2025

The JSON document contains the same few strings repeated thousands of times.

By using the freeze: true option of JSON.parse, added in json 2.4.0 (december 2020), we can save memory by reusing the same frozen string every time.

The JSON document contains the same few strings repeated thousands
of times.

By using the `freeze: true` option of JSON.parse, added in `json 2.4.0`
(december 2020), we can save memory by reusing the same frozen string
every time.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant