Tableau-Extension-ExportAll icon indicating copy to clipboard operation
Tableau-Extension-ExportAll copied to clipboard

Consider using StreamSaver.js instead of FileSaver.js

Open RowdyHowell opened this issue 3 years ago • 1 comments

Many of these exports are large. Instead of creating the file in memory and then saving the file, it should be possible to stream the Excel blob to a file.

This library is similarly structured to FileServer.js and was built specifically because of RAM limitations of FileSaver.js. https://github.com/jimmywarting/StreamSaver.js

XLSX supports writing to a stream. https://github.com/SheetJS/sheetjs#streaming-write

In my testing of large files, they crash in the XLSX.write(...) function. I believe the stream version will bypass this issue.

Is this under consideration? Are y'all taking PRs?

RowdyHowell avatar Mar 16 '21 19:03 RowdyHowell