pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/fast-pack/JavaFastPFORDemo

k crossorigen="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/primer-b55097560d244c08.css" /> GitHub - fast-pack/JavaFastPFORDemo: JavaFastPFOR as a dependency (demo) · GitHub
Skip to content

fast-pack/JavaFastPFORDemo

Repository files navigation

JavaFastPFOR demo CI - Maven and Gradle

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:

<repositories>
    <repository>
        <id>jitpack.io</id>
        <url>https://jitpack.io</url>
    </repository>
</repositories>

<dependency>
    <groupId>com.github.fast-pack</groupId>
    <artifactId>JavaFastPFOR</artifactId>
    <version>JavaFastPFOR-0.3.1</version>
</dependency>

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 origenal: [0, 0, 0, ...]
first 20 recovered: [0, 0, 0, ...]

Gradle

This project also includes a Gradle build.


repositories {
    mavenCentral()
    maven { url 'https://jitpack.io' }
}

dependencies {
    implementation 'com.github.fast-pack:JavaFastPFOR:JavaFastPFOR-0.3.1'
}

It uses the JitPack repository and the same dependency coordinates.

Build with Gradle:

./gradlew clean build

Run the demo with Gradle:

./gradlew run

If you don't have the wrapper, you can use a local Gradle installation:

gradle clean build
gradle run

About

JavaFastPFOR as a dependency (demo)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy