You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 7, 2020. It is now read-only.
The way that the types are collected from the AST by using syb uses a lot of memory. This was already identified when haddock started using HIE files for its hyperlinker. The solution is to
make the traversal smarter to only recover types at the leaves rather than for all subexpressions.
This issues makes HIE unusable with GHC (or any big project) as the process of traversing a single module is too expensive.
If someone wants to finish this off then they need to reimplement collectSpanTypes in Haskell.Ide.Engine.ArtifactMap in order to build the type map directly whilst performing the query rather than building an intermediate list and copy these changes into ArtifactMap so the type map generation doesn't depend on ghc-mod at all.
The way that the types are collected from the AST by using syb uses a lot of memory. This was already identified when haddock started using HIE files for its hyperlinker. The solution is to
make the traversal smarter to only recover types at the leaves rather than for all subexpressions.
This issues makes HIE unusable with GHC (or any big project) as the process of traversing a single module is too expensive.
cc @wz1000
The text was updated successfully, but these errors were encountered: