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

`BlockCache` should not create a `ListBuffer` #348

Open simerplaha opened 2 years ago

simerplaha commented 2 years ago

BlockCache should precompute the size of data require and allocate enough Array[Byte] instead of creating a ListBuffer.