Ane - a library to share mutable data efficiently by utilizing atomics and ets modules.
The idea is:
- Store all data with versionstamp in ETS table.
- Keep a cached copy with versionstamp locally.
- Use atomics array to save latest versionstamp and sync data between ETS table and local cache.
Benchmark result showed this approach is faster than ETS standalone for read-heavy case.
Project with more detailed info is available at github.com/gyson/ane.