rec-smallarray: SmallArray-based extensible records for small-scale fast reads

[ bsd3, data, library, records ] [ Propose Tags ] [ Report a vulnerability ]

Downloads

Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.1.0.0
Change log CHANGELOG.md
Dependencies base (>=4.12 && <=4.17), primitive (>=0.6.4 && <0.8) [details]
License BSD-3-Clause
Copyright 2022 Xy Ren
Author Xy Ren
Maintainer xy.r@outlook.com
Revised Revision 2 made by daylily at 2022-02-16T04:23:23Z
Category Data, Records
Home page https://github.com/re-xyr/rec-smallarray#readme
Bug tracker https://github.com/re-xyr/rec-smallarray/issues
Source repo head: git clone https://github.com/re-xyr/rec-smallarray
Uploaded by daylily at 2022-02-04T11:11:48Z
Distributions
Reverse Dependencies 1 direct, 1 indirect [details]
Downloads 217 total (3 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]

Readme for rec-smallarray-0.1.0.0

[back to package description]

rec-smallarray

GitHub Workflow Status Hackage

An immutable extensible record type based on SmallArrays, intended to provide fast reads on small structures.

Asymptotics

  • Index: Amorized O(1) with low constant factor
  • Update: O(n)
  • Slice: O(1)
  • Cons: O(n)

Note that this structure slows down GC when its size exceeds 128.

Contribution

This library started out as a module in cleff, an extensible effects library, and it needs to continue accommodating that. Contribution is welcome as long as it does not impede this library's performance nor increase its dependency footprint.