Skip to content

Make tests retain 4GB less RAM #80

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

Merged
merged 2 commits into from
Jun 1, 2025
Merged

Make tests retain 4GB less RAM #80

merged 2 commits into from
Jun 1, 2025

Conversation

sergv
Copy link
Contributor

@sergv sergv commented Jun 1, 2025

The === operator holds on to inputs for error reporting which is suboptimal for 4GB input strings. Showing it in case test fails is probably not wise.

With this change the +RTS -s becomes

  10,770,647,720 bytes allocated in the heap
     491,363,192 bytes copied during GC
      84,320,336 bytes maximum residency (7 sample(s))
         372,656 bytes maximum slop
             255 MiB total memory in use (0 MiB lost due to fragmentation)

Given that all operations happen on lazy bytestrings it might make sense to pass +RTS -MNNNG to limit heap size to NNN gigabytes so that errors in streaming that lead to data being retained will get caught.

@Bodigrim Bodigrim merged commit fc1d70a into haskell:master Jun 1, 2025
33 checks passed
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

Successfully merging this pull request may close these issues.

2 participants