GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - fast-pack/JavaFastPFORDemo: JavaFastPFOR as a dependency (demo)

BranchesTags
Open more actions menu

Latest commit

 

History

7 Commits
7 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
gradle/wrapper
gradle/wrapper
 
 
src/main/java/org/example
src/main/java/org/example
 
 
README.md
README.md
 
 
build.gradle
build.gradle
 
 
gradlew
gradlew
 
 
gradlew.bat
gradlew.bat
 
 
pom.xml
pom.xml
 
 
settings.gradle
settings.gradle
 
 

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 original: [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

Readme
Activity
Custom properties

Stars

3 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.