simplexlsx icon indicating copy to clipboard operation
simplexlsx copied to clipboard

Increasing memory usage

Open jonanthonii opened this issue 1 year ago • 3 comments

Is there any way to release the memory after reading because my memory usage keeps increasing. Just like PHPSpreadsheet has disconnectWorksheets() function to avoid memory issues.

jonanthonii avatar Mar 02 '24 00:03 jonanthonii

Try readRows https://github.com/shuchkin/simplexlsx?tab=readme-ov-file#xlsx-read-huge-file-xlsx-to-csv

сб, 2 мар. 2024 г., 06:20 Jon Anthony Genobaten @.***>:

Is there any way to release the memory after reading because my memory usage keeps increasing. Just like PHPSpreadsheet has disconnectWorksheets() function to avoid memory issues.

— Reply to this email directly, view it on GitHub https://github.com/shuchkin/simplexlsx/issues/151, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACNDYD4WPAD5J4SOHF6MOTYWELNPAVCNFSM6AAAAABECTJJS2VHI2DSMVQWIX3LMV43ASLTON2WKOZSGE3DINBQGU2DCMQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

shuchkin avatar Mar 02 '24 07:03 shuchkin

Try readRows https://github.com/shuchkin/simplexlsx?tab=readme-ov-file#xlsx-read-huge-file-xlsx-to-csv сб, 2 мар. 2024 г., 06:20 Jon Anthony Genobaten @.>: Is there any way to release the memory after reading because my memory usage keeps increasing. Just like PHPSpreadsheet has disconnectWorksheets() function to avoid memory issues. — Reply to this email directly, view it on GitHub <#151>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACNDYD4WPAD5J4SOHF6MOTYWELNPAVCNFSM6AAAAABECTJJS2VHI2DSMVQWIX3LMV43ASLTON2WKOZSGE3DINBQGU2DCMQ . You are receiving this because you are subscribed to this thread.Message ID: @.>

What's the difference of using readRows() instead of rows()?

jonanthonii avatar Mar 04 '24 07:03 jonanthonii

What's the difference of using readRows() instead of rows()?

There Generator inside

Use foreach

shuchkin avatar Mar 04 '24 08:03 shuchkin