This library seems to be somewhat slow to compile.
Using ghc-9.6.6 from the nix dev shell, it takes 2m41.717s to compile the openapi package.
If I compile with -O0 then it only takes 0m26.590s.
In particular, OpenAI.V1.Responses seems to be very slow to compile.
I haven't investigated exactly what's to blame for these slow compile times, so I don't have any concrete suggestions for making things better. One thing I've noticed is that this library uses Generics on some quite large datatypes. Maybe switching to TH would improve things? But a comment mentions that this library is trying to avoid using TH.
This library seems to be somewhat slow to compile.
Using ghc-9.6.6 from the nix dev shell, it takes 2m41.717s to compile the openapi package.
If I compile with
-O0then it only takes 0m26.590s.In particular,
OpenAI.V1.Responsesseems to be very slow to compile.I haven't investigated exactly what's to blame for these slow compile times, so I don't have any concrete suggestions for making things better. One thing I've noticed is that this library uses Generics on some quite large datatypes. Maybe switching to TH would improve things? But a comment mentions that this library is trying to avoid using TH.