Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/implement lz4 v1.9.4 #14

Open
wants to merge 24 commits into
base: develop
Choose a base branch
from

Conversation

PotatoPeeler3000
Copy link
Collaborator

No description provided.

…t. Added hybrid buffers that have repeating and random data.
…e type of compression algorithm used will be passed in. Rather than two functions, one for each algorithm
… algorithm type, and a random generator and computes the compression ratio, and the compression time for the given algorithm.
… for loops to warmup the JIT compiler and then takes an average for the benchmark.
…nts so the user can understand easier. Moved every use of the new keyword, so it's not called every time.
…fer's address, limit, and capacity. Then used this method in the benchmark to clean up the implementation.
…ier so each time the for loop is called new data gets filled, rather than testing the same data over and over again.
import org.bytedeco.lz4.*;
import org.bytedeco.lz4.global.lz4;

public class LZ4BytedecoCompressionImplementation
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would drop the Bytedeco from the name ie LZ4BytedecoCompressionImplementation

final static LZ4FDecompressionContext lz4DecompressionContext = new LZ4FDecompressionContext();

/** Method checks to see if anything goes wrong with the decompression of the data */
public static LZ4FDecompressionContext BytedecoLZ4CompressionImplementation() throws LZ4Exception
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rename to createContext or similar. The current name doesn't make sense and also shouldn't be pascal case.

}

// This interface is used to define each of our compression algorithms
private interface CompressionAlgorithm
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am a little confused why this is declared in a test file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants