Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • GHC GHC
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 4,862
    • Issues 4,862
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 455
    • Merge requests 455
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Glasgow Haskell Compiler
  • GHCGHC
  • Issues
  • #20548
Closed
Open
Created Oct 24, 2021 by Nathan Ringo@remexre

Very slow (8min w/ minimal exts, 18min with GHC2021) to typecheck reasonably-sized Happy grammar

Summary

I have a reasonably-sized (about 200 lines of grammar, about 130 lines of support code) Happy grammar that takes a whopping 18 minutes to build under GHC 9.0.1, when the extensions present in GHC2021 are in Cabal's default-extensions. It's down to 8 minutes when pared down to a minimal set. Passing -ddump-timings shows almost all the time being spent in typechecking.

The generated code is here.

Steps to reproduce

  • git clone https://git.sr.ht/~remexre/sylvan
  • cd sylvan/bootstrap
  • cabal build
  • Note the very long build times for Language.Sylvan.Parser

Expected behavior

Compile in not more than 2-3 minutes. (At least, not more than the rest of the project put together!)

Environment

  • GHC version used: 9.0.1

Optional:

  • Operating System: Linux (NixOS)
  • System Architecture: x86_64
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking