Skip to content

compressed array become bigger #11

Open
@koron

Description

@koron

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?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions