-
Notifications
You must be signed in to change notification settings - Fork 1
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
base: develop
Are you sure you want to change the base?
Conversation
…or compressing, decompressing, or both.
…me of the best and worst case situations.
…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.
…n the current version Lz4 1.8.
…nts so the user can understand easier. Moved every use of the new keyword, so it's not called every time.
…ot-data-logger into feature/implement_LZ4_v1.9.4
…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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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
No description provided.