No description
Find a file
2022-01-26 13:13:12 -08:00
.github Update FUNDING.yml 2022-01-26 13:13:12 -08:00
docs dik enumerated 2021-06-01 05:41:29 -03:00
src dik enumerated 2021-06-01 05:41:35 -03:00
.gitignore Initial commit 2021-05-06 12:41:42 -03:00
benchmark.nim update 2021-05-06 22:53:50 -03:00
dik.nimble init 2021-05-06 12:49:19 -03:00
LICENSE Initial commit 2021-05-06 12:41:42 -03:00
README.md Update README.md 2022-01-26 13:12:44 -08:00

Dik

Table implemented as optimized sorted hashed dictionary, same size and API as a Table, 0 dependencies, ~300 lines.

Get items by index or BackwardsIndex or Slice or string, destructor, resize in-place, toSeq, pretty, Heterogeneous values, tests for everything.

Documentation, Tests, Examples: https://juancarlospaco.github.io/dik

Benchmark

Operation Table Dik
del() 974 microseconds 301 microseconds
clear() 5 milliseconds 150 microseconds
add() 418 microseconds 250 microseconds
get() 242 microseconds 220 microseconds

Table is not ordered and does not return Option[T], so it is just an approximation for development.

source

FAQ

  • Whats the name ?.

Dik is a Dict.

Stars