]> iEval git - io-compress-brotli.git/log
io-compress-brotli.git
8 years agoFix Time:HiRes -> Time::HiRes in Makefile.PL
Marius Gavrilescu [Sat, 27 Aug 2016 23:30:07 +0000 (00:30 +0100)]
Fix Time:HiRes -> Time::HiRes in Makefile.PL

8 years agoAdd all contributors to the POD
Marius Gavrilescu [Sat, 27 Aug 2016 23:23:17 +0000 (00:23 +0100)]
Add all contributors to the POD

8 years agoConsistency between encoder/decoder boilerplate
Marius Gavrilescu [Sat, 27 Aug 2016 23:10:30 +0000 (00:10 +0100)]
Consistency between encoder/decoder boilerplate

8 years agoConsistent whitespace in t/02-roundtrip.t
Marius Gavrilescu [Sat, 27 Aug 2016 23:07:40 +0000 (00:07 +0100)]
Consistent whitespace in t/02-roundtrip.t

8 years agoRemove Getopt::Long from README, it's been along since perl 5
Marius Gavrilescu [Sat, 27 Aug 2016 23:06:46 +0000 (00:06 +0100)]
Remove Getopt::Long from README, it's been along since perl 5

8 years agoDrop version requirements in PREREQ_PM to 0
Marius Gavrilescu [Sat, 27 Aug 2016 23:05:59 +0000 (00:05 +0100)]
Drop version requirements in PREREQ_PM to 0

8 years agoUse ALIAS: for setting encoder parameters too
Marius Gavrilescu [Sat, 27 Aug 2016 23:01:50 +0000 (00:01 +0100)]
Use ALIAS: for setting encoder parameters too

8 years agoDon't leak memory on encoder DESTROY
Marius Gavrilescu [Sat, 27 Aug 2016 22:39:00 +0000 (23:39 +0100)]
Don't leak memory on encoder DESTROY

8 years agoUse ALIAS: for [compress] [flush] [finish] encoder functions
Marius Gavrilescu [Sat, 27 Aug 2016 22:35:50 +0000 (23:35 +0100)]
Use ALIAS: for [compress] [flush] [finish] encoder functions

8 years agoWhitespace
Marius Gavrilescu [Sat, 27 Aug 2016 22:05:37 +0000 (23:05 +0100)]
Whitespace

8 years agoDon't import bytes and be consistent with dying in bro-perl
Marius Gavrilescu [Sat, 27 Aug 2016 21:37:24 +0000 (22:37 +0100)]
Don't import bytes and be consistent with dying in bro-perl

8 years agoRemove the generated README.md, which was accidentally added automatically by my...
Quim Rovira [Wed, 17 Aug 2016 11:52:09 +0000 (13:52 +0200)]
Remove the generated README.md, which was accidentally added automatically by my git hooks :S

8 years agoMerge pull request #1 from avar/master
Quim Rovira [Wed, 17 Aug 2016 10:37:19 +0000 (12:37 +0200)]
Merge pull request #1 from avar/master

Migrate 3 functions in the *.pm to *.xs

8 years agoMigrate 3 functions in the *.pm to *.xs
Ævar Arnfjörð Bjarmason [Wed, 17 Aug 2016 10:24:53 +0000 (10:24 +0000)]
Migrate 3 functions in the *.pm to *.xs

This is a bit more verbose, and transition back & forth between perl &
C types in e.g. perl -> compress -> _compress is a bit silly, ideally
"compress" would just call a shared C function.

But this is just an as-is port of what it's doing now which avoids
hardcoding library constants in the *.pm, this could also be done with
ExtUtils::Constant, but whatever.

This leaves the mode() function unported, but it's not used
anywhere (WIP code?) and in any case could also be easily ported over.

8 years agoRemove leftover param from test
Quim Rovira [Wed, 17 Aug 2016 10:18:44 +0000 (12:18 +0200)]
Remove leftover param from test

8 years agoRemove NYI from IO::Compress::Brotli pod header
Quim Rovira [Tue, 16 Aug 2016 21:48:44 +0000 (23:48 +0200)]
Remove NYI from IO::Compress::Brotli pod header

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.046402 seconds and 4 git commands to generate.