Skip to content

A Swift map structure optimised for in-order reads.

Notifications You must be signed in to change notification settings

Satook/sw-densemap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

densemap

Main export is the DenseMap<Key, Value> type that allows you to store mostly contiguous runs of keys with their values in a cache-friendly way. It it built for fast in-order queries and enumeration but insertion can be slow.

Some performance characteristics:

  • In-order enumeration: O(1)
  • Random item fetch: O(Log n)
  • Random inserts|deletes: O(n)
  • Inserting|Deleting on the high end: O(1)

About

A Swift map structure optimised for in-order reads.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages