4 ms·
Is there movement on allowing larger memory usage for JS in browsers too? It's pretty limiting in some cases, say if you want to open a large file locally.
by modeless 2y ago
Is there movement on allowing larger memory usage for JS in browsers too? It's pretty limiting in some cases, say if you want to open a large file locally.
- azakai 2y agoYou can open a large file using a File or Blob, which do not store all the data in memory at once. Then you can read slices from it. That even works synchronously, in Workers: https://developer.mozilla.org/en-US/docs/Web/API/FileReaderSync https://developer.mozilla.org/en-US/docs/Web/API/FileReaderS...
- modeless 2y agoYes, I have done this. But sometimes you need a large chunk of data in memory and things get dicey quickly.