]> iEval git - io-compress-brotli.git/log
io-compress-brotli.git
8 years agoUse typemaps instead of manually managing the SVs
Quim Rovira [Tue, 16 Aug 2016 21:40:55 +0000 (23:40 +0200)]
Use typemaps instead of manually managing the SVs

Ævar suggested that using typemaps quite a bit of code could be cleaned
up and have some of the default sanity checks for free (see generated C
code in Brotli.c).

This also allows removing some of the perl sub wrappers, althought there
are some more cleanups that could be done on that, and the impact is
arguably low-to-none.

8 years agoAllow only window values between kBrotliMinWindowBits and kBrotliMaxindowBits
Quim Rovira [Mon, 15 Aug 2016 16:05:21 +0000 (18:05 +0200)]
Allow only window values between kBrotliMinWindowBits and kBrotliMaxindowBits

8 years agoFix leak of encoded_buffer on bro() spotted by mattia
Quim Rovira [Mon, 15 Aug 2016 15:51:16 +0000 (17:51 +0200)]
Fix leak of encoded_buffer on bro() spotted by mattia

8 years agoAdd missing brotli/Makefile file to the MANIFEST
Quim Rovira [Mon, 15 Aug 2016 15:33:29 +0000 (17:33 +0200)]
Add missing brotli/Makefile file to the MANIFEST

8 years agoUse the decoded size to measure the throughput, same as bro tool.
Quim Rovira [Sun, 14 Aug 2016 11:27:09 +0000 (13:27 +0200)]
Use the decoded size to measure the throughput, same as bro tool.

Now the performance make a bit more sense:

[quim@ling] ~/workspace/io-compress-brotli $ time perl -Iblib/lib
-Iblib/arch bin/bro-perl --input brotli/tests/testdata/alice29.txt
--output /tmp/out.test --repeat 40 --quality 10 --verbose
Ran 40 iterations in a total of 4.536567 seconds
Brotli compression speed: 1.278882 MB/s

real    0m4.586s
user    0m4.484s
sys     0m0.048s

[quim@ling] ~/workspace/io-compress-brotli $ time brotli/bin/bro --input
brotli/tests/testdata/alice29.txt --output /tmp/out.test --repeat 40
--quality 10 --verbose
Brotli compression speed: 1.2328 MB/s

real    0m4.759s
user    0m4.704s
sys     0m0.000s

8 years agoAdd .bak files to .gitignore
Quim Rovira [Sun, 14 Aug 2016 10:59:50 +0000 (12:59 +0200)]
Add .bak files to .gitignore

8 years agoAdd --repeat and --verbose options to bro-perl
Quim Rovira [Sun, 14 Aug 2016 10:57:31 +0000 (12:57 +0200)]
Add --repeat and --verbose options to bro-perl

8 years agoUpdate MANIFEST
Quim Rovira [Sun, 14 Aug 2016 10:15:49 +0000 (12:15 +0200)]
Update MANIFEST

8 years agoAdd travis.yml file
Quim Rovira [Sun, 14 Aug 2016 10:07:24 +0000 (12:07 +0200)]
Add travis.yml file

8 years agoUpdate README
Quim Rovira [Sun, 14 Aug 2016 09:49:17 +0000 (11:49 +0200)]
Update README

8 years agoAdd tests for compression, and a CLI tool for manual testing.
Quim Rovira [Sun, 14 Aug 2016 09:38:41 +0000 (11:38 +0200)]
Add tests for compression, and a CLI tool for manual testing.

I changed the names of the tests, so that compress round-trip runs
after the uncompress tests.

Also added a cli tool that tries to follow the official /bro/ cli tool,
but it's use is mostly for validation and testing, and is still missing
support for many of the flags (eg. --repeat).

For this, I moved the File::Slurp module to an actual dependency, not
a tests-only dep.

8 years agoInitial brotli compressor bindings
Quim Rovira [Sun, 14 Aug 2016 09:31:10 +0000 (11:31 +0200)]
Initial brotli compressor bindings

This provides both one-shot and streaming support, but I haven't yet
tested this thoroughly in terms of leaks and performance. The code tries
to adhere as much as possible to the rest of the module conventions.

8 years agoUse a local temporary buffer for decompression instead of a global.
Quim Rovira [Sun, 14 Aug 2016 09:08:20 +0000 (11:08 +0200)]
Use a local temporary buffer for decompression instead of a global.

Allocating the temporary buffer on each call to decompress might be
slightly less efficient, but that would mostly impact streaming
decompression with very small blocks.

Not even sure this change is really worth doing.. it could use some
benchmarking to see if it really makes sense.

8 years agoRemove unuser var total_out
Quim Rovira [Sun, 14 Aug 2016 09:05:42 +0000 (11:05 +0200)]
Remove unuser var total_out

8 years agoBreak down the long call to BrotliDecoderDecompressStream
Quim Rovira [Sun, 14 Aug 2016 09:03:42 +0000 (11:03 +0200)]
Break down the long call to BrotliDecoderDecompressStream

8 years agoForgot to rename the decoder custom dictionary func
Quim Rovira [Sat, 13 Aug 2016 12:30:35 +0000 (14:30 +0200)]
Forgot to rename the decoder custom dictionary func

8 years agoUpdate use of deprecated brotli decoder APIs
Quim Rovira [Sat, 13 Aug 2016 11:29:06 +0000 (13:29 +0200)]
Update use of deprecated brotli decoder APIs

This does not cover the use of BrotliDecompressedSize, and by looking at
the brotli code, it might even be a good idea to just use the streaming
interface right away.

8 years agoAdd libbrotli.a to the clean targets
Quim Rovira [Sat, 13 Aug 2016 10:17:03 +0000 (12:17 +0200)]
Add libbrotli.a to the clean targets

8 years agoUpdate MANIFEST
Quim Rovira [Sat, 13 Aug 2016 10:06:09 +0000 (12:06 +0200)]
Update MANIFEST

8 years agoAnother missing gitignore
Quim Rovira [Sat, 13 Aug 2016 10:05:48 +0000 (12:05 +0200)]
Another missing gitignore

8 years agoPoint the tests to the brotli test data
Quim Rovira [Sat, 13 Aug 2016 10:05:11 +0000 (12:05 +0200)]
Point the tests to the brotli test data

8 years agoAdd some gitignores before i go crazy
Quim Rovira [Sat, 13 Aug 2016 10:01:24 +0000 (12:01 +0200)]
Add some gitignores before i go crazy

8 years agoRemove old decoder files
Quim Rovira [Sat, 13 Aug 2016 09:50:47 +0000 (11:50 +0200)]
Remove old decoder files

8 years agoAdd a submodule for the official brotli repo, and use that instead of
Quim Rovira [Sat, 13 Aug 2016 09:49:31 +0000 (11:49 +0200)]
Add a submodule for the official brotli repo, and use that instead of
the local copy of the decoder files.

8 years agoBump version and update Changes 0.001001
Marius Gavrilescu [Fri, 1 Jan 2016 09:32:11 +0000 (11:32 +0200)]
Bump version and update Changes

8 years agoAdd BUILD_REQUIRES
Marius Gavrilescu [Fri, 1 Jan 2016 09:29:44 +0000 (11:29 +0200)]
Add BUILD_REQUIRES

8 years agoInitial commit 0.001
Marius Gavrilescu [Thu, 31 Dec 2015 19:02:31 +0000 (21:02 +0200)]
Initial commit

This page took 0.02834 seconds and 4 git commands to generate.