View Single Post
Farling
Senior Member
 
Join Date: Mar 2013
Location: Greater London, UK
Posts: 2,623

Old May 18th, 2021, 02:13 PM
Using a simple tool at https://stackoverflow.com/questions/...iable/33768639, the maximum capacities for a string for each browser are:

Firefox = 1,073,741,822 (1 GB)
Chrome = 536,870,888 (500 MB)

The entire file is read into a single string, so these limits will apply to the maximum allowed file size.

---

I just ran a quick test on Firefox. It loaded a 900 MB file, but failed to load a javascript library which I use for reading portfolio files. So more testing is required...

With a fix for that problem, I see another error when trying to process a large XML file...

"Error: Cannot create a string longer than 0x1fffffe8 characters"

That hex number is 536,870,888 bytes, which is 24 bytes less than 512 MB.

Farling

Author of the Realm Works Import tool, Realm Works Output tool and Realm Works to Foundry module

Donations gratefully received via Patreon, Ko-Fi or Paypal

Last edited by Farling; May 18th, 2021 at 03:10 PM.
Farling is offline   #9 Reply With Quote