Closed the-mikedavis closed 8 months ago
Changes Missing Coverage | Covered Lines | Changed/Added Lines | % | ||
---|---|---|---|---|---|
lib/mint/http2.ex | 7 | 8 | 87.5% | ||
<!-- | Total: | 7 | 8 | 87.5% | --> |
Totals | |
---|---|
Change from base Build 321c8303ed626452c8b010b605950ec62e23e7e2: | 87.5% |
Covered Lines: | 1251 |
Relevant Lines: | 1429 |
Ah this is fantastic, thanks for the benchmarks @the-mikedavis 💟
There is some low-hanging fruit to improve the time it takes to open a new request with HTTP/2 by avoiding
URI.default_port/1
andString.upcase/1
calls.With some very un-scientific
:timer.tc/1
benchmarking I see these changes reduce the time it takes to complete aMint.HTTP2.request/5
call (passing:stream
as the data argument) from 12.8ms to 2.5ms.