Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dadhi/smap

Fast persistent immutable Map data-structure for Scala with minimal memory footprint
https://github.com/dadhi/smap

2-3-tree benchmark data-structures dictionary efficiency hashmap immutable java map memory performance persistent scala

Last synced: 5 days ago
JSON representation

Fast persistent immutable Map data-structure for Scala with minimal memory footprint

Awesome Lists containing this project

README

        

# SMap

![Build](https://github.com/dadhi/SMap/actions/workflows/scala.yml/badge.svg)

Fast persistent immutable Map data-structure for Scala with minimal memory footprint.

The SMap is based on the ImMap from my .NET C# library https://github.com/dadhi/ImTools

Btw, **S** in Map is for **Speedy**.

### Goals

- [X] Port ImHashMap to SMap with complete addition and lookup ops and minimal tests for sanity
- [X] Benchmark with *ScalaMeter* -> so far inconclusive results
- [X] Benchmark with *JMH* -> initial results are [here](https://jmh.morethan.io/?source=https://raw.githubusercontent.com/dadhi/SMap/main/benchmarks/jmh-results.json)
- [X] Optimize the entry footprint for the Int keys
- [ ] Port the rest of the methods including foreach
- [ ] Port *CsCheck* test to *ScalaCheck*
- [ ] Conform to `immutable.Map` trait as much as possible
- [ ] Publish the package with initial version
- [ ] Optimize the Map entry footprint for the Set