Skip to content

Writing int[] into a file #43

@mokun

Description

@mokun

Assume I have 10,000 int, which range from -9000 to +21000 in value.

What would be the strategy of writing the int[] already compressed by JavaFastPFOR into a file for archive ?

Should I assume I need to convert each int into 4 bytes ?

So will an int[] array with 10,000 values will be saved as a byte[] array with the size of 40,000 ?

Any other more optimal way to save the data into a file ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions