Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closing sheet does not free memory #54

Open
demidafonichev opened this issue May 24, 2023 · 0 comments
Open

Closing sheet does not free memory #54

demidafonichev opened this issue May 24, 2023 · 0 comments

Comments

@demidafonichev
Copy link

demidafonichev commented May 24, 2023

Hi,
I am trying to write a file with 200+ sheets of 10k+ rows of data and memory consumption is very high (around 7gb)
I tried stream writing data but it still takes too much ram (~700mb) even if a manually close sheets with sheet.Close() after writing all data which seems to not do anything

I checked if combination of saving file and reopening it for new sheet would help and it did (peak memory consumption was 70mb), but each sheet was writing slower and slower due to re-reading all data from file

Can there be a hybrid solution where I can manually close current sheet and free the memory without closing file?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant