c-rack/cbor-java

Add Array(int initialCapacity) constructor

letmaik opened this issue · 2 comments

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.

👍

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