simerplaha / SwayDB

Persistent and in-memory key-value storage engine for JVM that scales on a single machine.
https://swaydb.simer.au
Apache License 2.0
293 stars 16 forks source link

Cache key-value IDs should use Array instead of HashMap #320

Closed simerplaha closed 3 years ago

simerplaha commented 3 years ago

All key-value IDs are sequentially numbered Ints so a HashMap is unnecessary. Switch to using an Array (O(1)).