You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using parallel.js to build up a result space and to find all criteria matching results within this space, which works very well. There is just one edge case, where this isn't working: In case my criteria are sparse (or there are no criteria, so each result of the result space is a matching result), my algorithm produces a lot of data, which are reduced to a long List of Lists. This list seems to be too long to be parsed by JSON.stringify (used by parallel.js) and raises a:
RangeError: Invalid string length
at JSON.stringify (<anonymous>)
at process.eval (eval at <anonymous> (.../node_modules/paralleljs/lib/eval.js:7:5), <anonymous>:23:30329)
at process.emit (node:events:390:28)
at emit (node:internal/child_process:917:12)
at processTicksAndRejections (node:internal/process/task_queues:84:21)
I'm using parallel.js to build up a result space and to find all criteria matching results within this space, which works very well. There is just one edge case, where this isn't working: In case my criteria are sparse (or there are no criteria, so each result of the result space is a matching result), my algorithm produces a lot of data, which are reduced to a long List of Lists. This list seems to be too long to be parsed by JSON.stringify (used by parallel.js) and raises a:
This is caused by an issue of the V8 engine, used by Node.js:
nodejs/node-v0.x-archive#14170
nodejs/node#35973
and it seems this won't get fixed within the near future.
The mentioned solution is
which I can't apply, as parallel.js is executing the stringify operation.
Is there an option to work around this issue or to fix it within parallel.js?
The text was updated successfully, but these errors were encountered: