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

Update the brotli submodule to its latest version. #179

Closed
wants to merge 3 commits into from

Conversation

szabadka
Copy link
Contributor

The brotli encoder got a new faster compression mode,
quality 0, which is about 2x faster than the fastest
mode in the previous version, and the quality 1 mode
also got considerably faster.

Because of this, it might be worth re-running the brotli
benchmarks and updating the benchmark results.

The brotli encoder got a new faster compression mode,
quality 0, which is about 2x faster than the fastest
mode in the previous version, and the quality 1 mode
also got considerably faster.

Because of this, it might be worth re-running the brotli
benchmarks and updating the benchmark results.
@szabadka
Copy link
Contributor Author

How can I reproduce these failures? After I built everything, I tried:

$ make test
Running tests...
Test project /usr/local/google/home/szabadka/brotli-opensource/squash
No tests were found!!!

@nemequ
Copy link
Member

nemequ commented Jan 11, 2016

The unit tests currently use the testing framework built into glib; if you don't have the glib development package install they will be disabled.

  • On Debian/Ubuntu/etc.: sudo apt-get intall libglib2.0-dev
  • Fedora/RHEL/CentOS/etc.: sudo yum install glib2-devel
  • OS X (homebrew): brew install glib

Sorry about this, I'm working on removing the glib dependency now.

@nemequ
Copy link
Member

nemequ commented Jan 11, 2016

FWIW, I'm updating all the submodules right now, and this error happens without any changes to squash-brotli.cpp; it appears to be due to a change in brotli itself.

If you fire up a debugger you can set a breakpoint on the squash_error function (which is called whenever something returns an error code, just so it's a bit easier to find the source), and a quick backtrace will lead you back to squash-brotli.cpp:219. So that call to WriteBrotliData is failing, and it wasn't before.

@szabadka
Copy link
Contributor Author

I have found the cause and have a fix upstream. After that lands, I will update this PR.

This is supposed to fix the flush-test failure.
@szabadka
Copy link
Contributor Author

The travis failures seem to be unreleated to the brotli update, so brotli should be ok to update.

@nemequ
Copy link
Member

nemequ commented Jan 12, 2016

Merged after a quick rebase, thanks!

I'll update the benchmark soon.

@nemequ nemequ closed this Jan 12, 2016
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.

None yet

2 participants