foliojs / brotli.js

A JavaScript port of the Brotli compression algorithm, as used in WOFF2
494 stars 51 forks source link

Port the decoder to JS by hand #6

Closed devongovett closed 8 years ago

devongovett commented 8 years ago

This switches the decoder from using an Emscripten compile to a hand port. The encoder is still compiled with Emscripten.

There are a number of advantages to this:

This port was originally done a while ago, and I'm just getting around to finishing it up. Therefore, it is based on an old version of the C decoder. Most of the changes since then have to do with streaming support, which isn't supported here (yet). I did, however, port back the functional decoding changes to support the latest spec. The JS version passes all tests from the latest Brotli decoder test suite.

behdad commented 8 years ago

:100: