Tableau-Extension-ExportAll
Tableau-Extension-ExportAll copied to clipboard
Consider using StreamSaver.js instead of FileSaver.js
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?