monitorjbl / excel-streaming-reader

An easy-to-use implementation of a streaming Excel reader using Apache POI
Apache License 2.0
943 stars 342 forks source link

Consider writing to ByteArrayInputStream instead of temporary file #228

Closed p91paul closed 3 years ago

p91paul commented 3 years ago

The reason to write to a file is the reduced memory consumption. However, the zip file is usually very much smaller than the amount of RAM you would need to open the entire workbook with POI. So if you gave the option not to write the temp file but instead save it into RAM as a byte array, you would have more memory usage than today, but still much less than standard POI. That, of course, should be optional and would allow working in environments where writing files is forbidden.

p91paul commented 3 years ago

Reposted as https://github.com/pjfanning/excel-streaming-reader/issues/30 since I realized that's the alive version of this