RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

[ANN] http-2 1.1.0 released

http-2 1.1.0 has been released.

https://github.com/igrigorik/http-2

Pure Ruby, framework and transport agnostic, implementation of HTTP/2 protocol and HPACK header compression with support for:

Protocol specifications:

Here are the updates since the last release:

1.1.0

Several changes which improved performance for the common cases. A few highlights:

  • Opting into ruby 3.4 features when possible (such as String#append_as_bytes instead of String#<<)
  • reducing string and array allocations on several places (connection management, frame generation, hpack header compression, etc)
  • “streams recently closed” not having to regenerate the list when not necessary
1.0.2 Improvements
  • Freezing static tables (used for header huffman coding) correctly. This makes them shareable, which makes http-2 usable across ractors.
  • Moved buffer helpers from String refinements into mixins. Refinements impose a relevant performance penalty, unfortunately, despite its cleaner API.
1.0.1 Improvements
  • discard closed streams from the connection (reduces memory consumption).
Bugfixes
  • allow RST_STREAM frames to be ignored on closed streams.
  • prevent already closed streams from being initialized again.

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in