Skip to content

Apply nothunks to ghcide and dependencies #736

Open
@pepeiborra

Description

@pepeiborra

nothunks is a library to do runtime detection of unexpected thunks.
This is very relevant for us since we have suffered from space leaks in the past.

Thunks checking could be guarded by a flag. I expect that there will be plenty of thunks in ghcide, its dependencies and GHC itself. If we ever manage to eliminate all of them, we can enable the flag in the benchmark CI job and fail it when a new thunk is introduced.

Potential sources of thunks include:

  • The values map
  • The Shake state
  • The diagnostics store
  • The position mapping
  • The Shake session queue

Metadata

Metadata

Assignees

No one assigned

    Labels

    HackathonThis issue is suitable for hackathon sessionslevel: easyThe issue is suited for beginnersperformanceIssues about memory consumption, responsiveness, etc.type: enhancementNew feature or request

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions