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

Reducing output file memory #38

Closed
valeriaRaffuzzi opened this issue May 24, 2023 · 0 comments
Closed

Reducing output file memory #38

valeriaRaffuzzi opened this issue May 24, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@valeriaRaffuzzi
Copy link
Member

At the moment, when writing the output file, all the tallies print their results in a unique charTape instance, and this gets written in the output file at once.

This approach is memory expensive when there's a lot of tallies, since the memory taken by the tallies gets duplicated when the results are written in the charTape. It would be more memory efficient to write the charTape into the output file after each tally is printed, and then clear the charTape. This would avoid long memory-intensive tapes.

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

No branches or pull requests

1 participant