Settings

Theme

Show HN: HTTP/2 HPACK Compression Go Library

github.com

40 points by chrismoos 10 years ago · 14 comments

Reader

mappu 10 years ago

How does this compare to `net/http2/hpack`, now in the standard library?

  • chrismoosOP 10 years ago

    One of the main differences is this one uses lookup tables for faster decoding of Huffman compressed data as opposed to using a tree (which is what the stdlib one uses). It also offers some additional encoding options for users that want more control of header field indexing.

    • bradfitz 10 years ago

      Yes, let's get your version into Go if it's better.

      (I wrote Go's quickly. I've never profiled it, delaying that until Go 1.7, which opened for development yesterday)

      • chrismoosOP 10 years ago

        If I'd like to get some of the enhancements in there, is this the route to go? https://golang.org/doc/contribute.html

        • bradfitz 10 years ago

          Yup! That documentation is too daunting IMO but it's complete and not many steps, despite all the words. Especially if you're a Go programmer already. (just go get the code review tool)

          I'd start with filing a bug against Go to track the overall process.

          • tshannon 10 years ago

            This is why I love open source projects, and shows just how open source Go is.

            Fantastic.

    • Artemis2 10 years ago

      Why not contribute it to the Go projet, if this version is arguably better than the current implementation?

  • ayanamist 10 years ago

    I think this project is written behind closed doors.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection