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

Running out of ram on 260k LOC project. #163

Closed
fisx opened this issue Jun 8, 2024 · 2 comments · Fixed by #165
Closed

Running out of ram on 260k LOC project. #163

fisx opened this issue Jun 8, 2024 · 2 comments · Fixed by #165

Comments

@fisx
Copy link
Contributor

fisx commented Jun 8, 2024

Trying to run weeder on wire-server on a 32G laptop, but i'm running out of ram.

event log:
weeder.eventlog.zip

heap profile:
weeder.hp.zip

@fisx
Copy link
Contributor Author

fisx commented Jun 8, 2024

Shot in the dark: what if we made the Semigroup instance for Analysis stricter using deepseq?

Also, I'm surprised how rich Analysis is. I would have expected something like

data Analysis =
  Analysis
    { usedSymbols :: [String],
      declaredSymbols :: [String]
    }

I'm sure there is a reason for everything in there, of course, and I'm determined to find out more tomorrow! :)

@fisx
Copy link
Contributor Author

fisx commented Jun 9, 2024

i made some progress: getFilesIn does not terminate on wire-server. maybe something about following ".." up to the file system root, or cyclical symlinks?

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 a pull request may close this issue.

1 participant