Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added the Compact data modules #2520

Merged
merged 19 commits into from
Oct 26, 2021
Merged

Added the Compact data modules #2520

merged 19 commits into from
Oct 26, 2021

Conversation

TimSheard
Copy link
Contributor

Some new data structures to be used instead of Data.Map
Take advantage of some properties

  1. Keys are Cryptographic Hashes, so they are evenly distributed, and never have collisions
  2. Aggressively using {-# UNPACK #-} to reduce space
  3. Use Trie based structures based on SmallArray

@lehins lehins force-pushed the ts-compact branch 2 times, most recently from 9b283cc to 3ed31b6 Compare October 26, 2021 16:15
@lehins lehins self-requested a review October 26, 2021 17:49
Copy link
Collaborator

@lehins lehins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is still work in progress, but is already functional and shows really good results with respect to reducing memory overhead when comparing to Data.Map.Strict from containers. We still need to add tests and reduce clutter by removing unused code. We will continue improving this compact-map package. However, considering that it is not being used by any other packages it is already safe to merge it in, despite its WIP state.

@lehins lehins merged commit cdbf64f into master Oct 26, 2021
@iohk-bors iohk-bors bot deleted the ts-compact branch October 26, 2021 17:54
@lehins lehins restored the ts-compact branch October 26, 2021 17:55
@lehins lehins deleted the ts-compact branch October 26, 2021 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants