Open
Description
There are some cases that compressed array becomes bigger than original.
You can see sample for it here: https://github.com/koron/JavaFastPFOR/compare/adhoc-tests
Of course I know it is very rare and not target of this library.
But it may cause a kind of uncovenience for users.
There are some workarounds:
- Write it in document.
- Make a utility methods to calculate preferred length for output array.
- Introduce auto extendable buffer, it would be called
IntArrayOutputStream
or so.
What workaround do we choose?