-
How to reproduce https://aoe4world.com/dumps Grab the file url and put it into
The problem The following error occurs in Line 4 in
I can download the file on mac os and extract it by double click in the finder and then open in visual studio code without problems. Visual studio code shows |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
That file is 533MB decompressed, but strings in JavaScript can be at most 512MB. In other words, it's not possible to decompress this data to a single string in JavaScript at all, no matter what library you use. You can try to solve this by decompressing the data in a stream and using a streaming JSON parser; let me know if you want more info on how to do that. |
Beta Was this translation helpful? Give feedback.
That file is 533MB decompressed, but strings in JavaScript can be at most 512MB. In other words, it's not possible to decompress this data to a single string in JavaScript at all, no matter what library you use.
You can try to solve this by decompressing the data in a stream and using a streaming JSON parser; let me know if you want more info on how to do that.