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

Rollback NFP interning #344

Merged
merged 1 commit into from
Jul 3, 2021
Merged

Rollback NFP interning #344

merged 1 commit into from
Jul 3, 2021

Conversation

pepeiborra
Copy link
Collaborator

In retrospect I don't think interning NFPs is a good idea. It can lead to space leaks, the efficiency gains are not that huge, and in some cases we can achieve the same efficiencies by carefully tweaking the call sites to maximise sharing.

@wz1000
Copy link
Collaborator

wz1000 commented Jul 3, 2021

Alright. Do you have any benchmarks? How are you checking these claims? Would something like an LRU cache help fix the space leaks?

@pepeiborra
Copy link
Collaborator Author

pepeiborra commented Jul 3, 2021

I am using telemetry metrics collected after running a patched version of Sigma IDE for a week. The results show that the RSS did actually increase for all percentiles.

See haskell/haskell-language-server#1996 for a more localised approach.

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.

None yet

2 participants