Skip to content

Excessive compile times #74

@TeofilC

Description

@TeofilC

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.

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