summaryrefslogtreecommitdiffstats
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* merge lz4opt.h into lz4hc.cYann Collet2018-02-251-1/+1
| | | | | | | | | | | | | | Having a dedicated file for optimal parser made sense during its creation, it allowed Przemyslaw to work more freely on lz4opt, with less dependency on lz4hc, moreover, the optimal parser was more complex, with its own search functions. Since the optimal was rewritten last year, it's now a lot lighter. It makes more sense now to integrate it directly inside lz4hc.c, making it easier to edit (editors are a bit "lost" inside a `*.h` dependent on its #include position), it also reduces the number of files in the project, which fits pretty well with lz4 objectives. (adding lz4hc requires "just" lz4hc.h and lz4hc.c).
* modified decompression part of frameCompress.cYann Collet2018-02-011-99/+138
| | | | using same logic as prior modifications for compression part.
* refactored ressource allocation to avoid gotoYann Collet2018-02-011-23/+12
|
* examples/Makefile : changed dependency orderYann Collet2018-02-011-9/+9
| | | | static library *.a must come after source files *.c on linux
* refactored frameCompress.c example codeYann Collet2018-02-011-51/+81
| | | | | | compression function returns a struct. Also : nested structure ressources->computation to make it easier to manage multiple exit points.
* fixed read size, as noticed by @terrellnYann Collet2018-02-011-1/+1
|
* ensure proper dependencies are built for /examplesYann Collet2018-02-011-19/+25
| | | | also : use liblz4.a static lib to share compilation time
* refactored frameCompress exampleYann Collet2018-01-311-68/+82
| | | | to better reflect LZ4F API usage.
* minor updates to examplesYann Collet2017-11-257-61/+62
| | | | see https://github.com/lz4/lz4/commit/810e2ca27b3561e0f6bfa7a88e0fde6faf807064#commitcomment-25810887
* minor improvements to examplesYann Collet2017-09-112-10/+18
| | | | | cosmetic : better display added optional variable MOREFLAGS
* bench : made decompression speed evaluation same time as compressionYann Collet2017-09-071-28/+17
| | | | minor : slightly modified an example do avoid disabling a gcc warning through #pragma
* Fix: Add return statement to main functionMarkus Hennecke2017-08-241-0/+2
|
* restored block checksum capability at lz4frame API levelYann Collet2017-08-121-3/+3
|
* fixed frameCompress exampleYann Collet2017-08-091-268/+269
|
* fixed minor scan-build warningYann Collet2017-06-081-0/+1
|
* refactored simple_buffer.c example (#363)Yann Collet2017-06-083-43/+50
|
* minor warning fixv1.7.4Yann Collet2016-11-221-30/+19
|
* fix minor analyzer warningYann Collet2016-11-221-14/+9
|
* fixed minor analyzer warningYann Collet2016-11-211-11/+9
|
* added examples to make allYann Collet2016-11-212-6/+8
|
* Add frame decompression exampleNick Terrell2016-11-111-50/+199
|
* Add dictionary random access exampleNick Terrell2016-11-105-6/+359
|
* Clarified license (#115, #244)Yann Collet2016-11-022-0/+341
|
* use gnu c99 to get both c99 and POSIXGeorg Sauthoff2016-08-271-1/+1
| | | | | | when compiling with gcc fixes fileno() implicitly defined on Linx and compile error on Solaris 10
* Correctly reference self (github, not googlecode)Ben Wiederhake2016-07-071-1/+1
|
* Remove whitespace from ends of linesJulius Werner2016-02-132-2/+2
| | | | | | | I'm trying to import LZ4 code into a project with strict linting requirements. This will make that easier. Signed-off-by: Julius Werner <jwerner@chromium.org>
* Forgot to make clean before commiting. Removing binary.KyleJHarper2015-10-301-0/+0
|
* Several changes to address a few concerns from Yann. See Google Group LZ4c ↵KyleJHarper2015-10-304-32/+84
| | | | topic 'Reusing compression/decompression resources' for details.
* Added a note about why char* is used. Also removed a binary that wasn't ↵KyleJHarper2015-10-292-0/+7
| | | | supposed to be in there.
* Finished the two example files. Decided to avoid adding anything to lz4.c/h ↵KyleJHarper2015-10-293-56/+69
| | | | to expose LZ4_compress_generic().
* Took out the basics and placed them into basics.c. Added decompression and ↵KyleJHarper2015-10-263-76/+232
| | | | a wrapper for the generic call. I will likely break this file up into 2 examples before submission.
* Final tests and reporting are done. As expected there isn't much to be ↵KyleJHarper2015-10-231-75/+148
| | | | gained by jumping the chain. In most of my tests I did see a moderate performance gain when invoking LZ4_compress_generic() directly with normal text. This could very easily be an edge case. Either way it's interesting and worth sharing.
* Didn't add my file for some reason. Odd.KyleJHarper2015-10-221-0/+155
|
* Wrote the skeleton of the performance test. Need to finish tests for the ↵KyleJHarper2015-10-221-1/+4
| | | | rest of the call stack and then my own copy of generic().
* Added static analyzer test in VisualYann Collet2015-06-291-0/+0
|
* minor example clarificationYann Collet2015-06-282-5/+9
|
* Merge pull request #122 from keszybz/masterYann Collet2015-06-262-2/+174
|\ | | | | New example using frame api as DLL - redirect from #118
| * Use lz4 binary to check outputZbigniew Jędrzejewski-Szmek2015-06-181-0/+2
| |
| * Add example which uses the frame api through the libraryZbigniew Jędrzejewski-Szmek2015-06-182-2/+172
| |
* | Make git ignore generated filesZbigniew Jędrzejewski-Szmek2015-06-161-0/+8
|/
* Updated lz4hc APIYann Collet2015-05-033-26/+19
|
* Updated streaming examplesYann Collet2015-05-032-4/+4
|
* Replace obsolete functionsTakayuki MATSUOKA2015-04-132-5/+6
|
* Add snprintf macro for MSVCTakayuki MATSUOKA2015-04-132-2/+8
|
* Added : doc authorshipYann Collet2015-03-253-1/+3
|
* Add "Examples" subtreeTakayuki MATSUOKA2015-03-241-2/+3
|
* Add README.md as table of contentsTakayuki MATSUOKA2015-03-241-0/+7
|
* Add document for "Line by Line Text Compression" exampleTakayuki MATSUOKA2015-03-241-0/+121
|
* Add document for "Double Buffer" exampleTakayuki MATSUOKA2015-03-241-0/+99
|
* Add document : "Streaming API Basics"Takayuki MATSUOKA2015-03-241-0/+87
|