[v8-users] JSON::Stringify and node16/v8 string length limits

2022-01-04 Thread 'philip....@airtable.com' via v8-users
In transitioning from Node12 to Node16 we found that v8's string left limit went down to 512MB. We have a few places in our existing code base where we JSON.stringify() objects that serialize to hundreds of megabytes, and we're looking at alternatives. Have folks in this forum worked through si

[v8-users] Re: JSON::Stringify and node16/v8 string length limits

2022-01-22 Thread 'philip....@airtable.com' via v8-users
Thanks for the suggestions! I tried duplicating json-stringifier.cc but ran quickly into the fact that it uses v8::internal stuff which isn't exposed in the v8 public API, and therefore not exposed in Node's plugin APIs either. So, I implemented on top of v8::Object::GetPropertyNames() instead.