You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This small Maven project shows how to use JavaFastPFOR (from the fast-pack/JavaFastPFOR repository) to compress and uncompress an int[] using FastPFOR128. We use both gradle and maven.
Prerequisites
JDK 21 installed and available on your PATH
Maven 3.6+ (tested with Maven 3.9)
Verify with:
mvn -v
java -version
Maven demo
We added the JitPack repository to our pom.xml and use the exact coordinates published for this project. The project exposes the artifact as JavaFastPFOR with a tag-style version. For example:
Note: coordinates are case-sensitive. Using JavaFastPFor (different case) or a short 0.3.1 version may fail if that exact artifact/version was not published.
Build
Download dependencies and compile:
mvn package
Run the demo
Run the Main class included in this project:
mvn exec:java -Dexec.mainClass=org.example.Main
The demo compresses an array of length 9984, then uncompresses it and prints a small verification summary. Example output:
N=9984 compressedSizeWords=XXX mismatches=0
first 20 original: [0, 0, 0, ...]
first 20 recovered: [0, 0, 0, ...]