Skip to content

Use object files for Template Haskell #970

Closed
@mpickering

Description

@mpickering

Following many of the same reasons as haskell/ghcide#355, it would be beneficial to use object files for supporting TemplateHaskell rather than bytecode because it can be cached between runs.

It is also necessary to stop ghcide caching a typechecked module are all transitive dependencies as this uses too much memory on big code bases, at least until there is a garbage collection story.

This patch is implemented on this branch: https://github.com/mpickering/ghcide/tree/wip/object-files

Questions to resolve:

  • How do we decide whether to preemptively generate an object file or not? It is too slow to do on every keystroke.
  • Do we want to retain support for ByteCode, perhaps toggling between the two if -fobject-code is passed?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions