Live data from Hacker News

Show HN: HTTP/2 HPACK Compression Go Library

github.com

1–10 of 15 posts

Re: Show HN: HTTP/2 HPACK Compression Go Library

#4
post #2

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

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.

Re: Show HN: HTTP/2 HPACK Compression Go Library

#6
post #2

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

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.

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

Re: Show HN: HTTP/2 HPACK Compression Go Library

#7
post #2

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

I think this project is written behind closed doors.

Go is developed entirely in the open. I wrote Go's hpack and there are no other Go coworkers in my office.

Re: Show HN: HTTP/2 HPACK Compression Go Library

#8
post #2

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

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.

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)

Re: Show HN: HTTP/2 HPACK Compression Go Library

#9
post #7

Earlier quoted context omitted.

I think this project is written behind closed doors.

Go is developed entirely in the open. I wrote Go's hpack and there are no other Go coworkers in my office.

I think he meant that about chrismoos/hpack

Re: Show HN: HTTP/2 HPACK Compression Go Library

#10
post #7

Earlier quoted context omitted.

I think this project is written behind closed doors.

Go is developed entirely in the open. I wrote Go's hpack and there are no other Go coworkers in my office.

But do you close your doors sometimes?
Post reply on HN