haskell-servant / haskell-servant/servant

Generic records causes very slow compile times

Open
#1,038 6 comments 0 reactions 0 assignees View on GitHub
help wanted performance
Dominant language
Haskell
Stars
2k
Forks
427
Avg merge
2d 23h
Merged PRs (30d)
5

Description

apparently, large APIs using the `Servant.API.Generic` record mechanism are orders of magnitude slower to compile than their `:<|>` equivalent

https://twitter.com/mattoflambda/status/1041622124576661504

I'm not sure how much we can do about this, but we could at least benchmark, create a minimal example that triggers this behaviour, and submit it to GHC as a bug

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.