Add Array(int initialCapacity) constructor
letmaik opened this issue · 2 comments
letmaik commented
There's currently no way to create an Array with a hint of the capacity it will have. Since Map already has such a constructor, Array should have it too since it can improve performance in cases where the size is known.
c-rack commented
👍
c-rack commented
Version 0.7 with fixes for #18 and #19 has been published to Maven central:
https://search.maven.org/#artifactdetails|co.nstant.in|cbor|0.7|jar