@hackage / large-records

Efficient compilation for large records, linear in the size of the record

Latest0.4.4

About

Metadata

  • Last updated , by EdskoDeVries
  • License BSD-3-Clause
  • Categories Generics
  • Maintained by: edsko@well-typed.com

  • Lottery factor: 1

Links

Installation

Tested Compilers

  1. 9.12.2
  2. 9.10.2
  3. 9.8.4
  4. 9.6.7
  5. 9.4.8
  6. 9.2.8
  7. 9.0.2
  8. 8.10.7

Package Flags

Use the -f option with cabal commands to enable flags

    rdp (off by default)

    Include record-dot-preprocessor functionality

Readme

For many reasons, the internal code generated for modules that contain records is quadratic in the number of record fields. For large records (more than 30 fields, say), this can become problematic, leading to large compilation times and high memory requirements for ghc. The large-records library provides a way to define records that is guaranteed to result in ghc core that is linear in the number of record fields.