cloudflared-mirror/h2mux
Igor Postelnik bd15c6b8c3 TUN-3208: Reduce copies and allocations on h2mux write path. Pre-allocate 16KB write buffer on the first write if possible. Use explicit byte array for chunks on write thread to avoid copying through intermediate buffer due to io.CopyN.
benchmark                                    old ns/op     new ns/op     delta
BenchmarkSingleStreamLargeResponseBody-8     17786594      12163494      -31.61%

benchmark                                    old allocs     new allocs     delta
BenchmarkSingleStreamLargeResponseBody-8     17086          15869          -7.12%

benchmark                                    old bytes     new bytes     delta
BenchmarkSingleStreamLargeResponseBody-8     58215169      21604391      -62.89%
2020-07-29 14:30:12 +00:00
..
sample TUN-2779: update sample HTML pages 2020-03-03 19:35:41 +00:00
activestreammap.go TUN-2631: only notify that activeStreamMap is closed if ignoreNewStreams=true 2019-12-11 17:05:28 -06:00
activestreammap_test.go TUN-2631: only notify that activeStreamMap is closed if ignoreNewStreams=true 2019-12-11 17:05:28 -06:00
booleanfuse.go TUN-528: Move cloudflared into a separate repo 2018-07-19 15:02:24 -05:00
bytes_counter.go TUN-528: Move cloudflared into a separate repo 2018-07-19 15:02:24 -05:00
bytes_counter_test.go TUN-528: Move cloudflared into a separate repo 2018-07-19 15:02:24 -05:00
error.go TUN-2162: Decomplect OpenStream to allow finer-grained timeouts 2019-09-05 15:23:41 +00:00
h2_compressor_brotli.go TUN-813: Clean up cloudflared dependencies 2018-07-24 18:07:02 -05:00
h2_compressor_none.go TUN-528: Move cloudflared into a separate repo 2018-07-19 15:02:24 -05:00
h2_dictionaries.go bug(cloudflared): nil pointer deference on h2DictWriter Close() (#154) 2019-12-03 16:29:40 +04:00
h2mux.go TUN-3208: Reduce copies and allocations on h2mux write path. Pre-allocate 16KB write buffer on the first write if possible. Use explicit byte array for chunks on write thread to avoid copying through intermediate buffer due to io.CopyN. 2020-07-29 14:30:12 +00:00
h2mux_test.go TUN-3208: Add benchmark for large response write 2020-07-29 14:30:12 +00:00
header.go TUN-3209: improve performance and reduce allocations during user header serialization from h1 to h2 2020-07-29 14:29:07 +00:00
header_test.go TUN-3209: improve performance and reduce allocations during user header serialization from h1 to h2 2020-07-29 14:29:07 +00:00
idletimer.go TUN-528: Move cloudflared into a separate repo 2018-07-19 15:02:24 -05:00
idletimer_test.go TUN-528: Move cloudflared into a separate repo 2018-07-19 15:02:24 -05:00
muxedstream.go TUN-3208: Reduce copies and allocations on h2mux write path. Pre-allocate 16KB write buffer on the first write if possible. Use explicit byte array for chunks on write thread to avoid copying through intermediate buffer due to io.CopyN. 2020-07-29 14:30:12 +00:00
muxedstream_test.go TUN-1893: Proxy requests to the origin based on tunnel hostname 2019-06-13 14:46:22 -05:00
muxmetrics.go AUTH-2596 added new logger package and replaced logrus 2020-05-27 17:07:19 -05:00
muxmetrics_test.go AUTH-2596 added new logger package and replaced logrus 2020-05-27 17:07:19 -05:00
muxreader.go AUTH-2596 added new logger package and replaced logrus 2020-05-27 17:07:19 -05:00
muxreader_test.go TUN-2506: Expose active streams metrics 2019-11-07 14:09:31 -06:00
muxwriter.go AUTH-2648 updated usage text 2020-06-11 11:08:05 -05:00
muxwriter_test.go TUN-2796: Implement HTTP2 CONTINUATION headers correctly 2020-03-24 13:46:17 +00:00
readylist.go TUN-1358: Close readyList after Muxer.Serve() has stopped running 2019-01-22 15:54:29 -06:00
readylist_test.go TUN-1358: Close readyList after Muxer.Serve() has stopped running 2019-01-22 15:54:29 -06:00
rtt.go TUN-528: Move cloudflared into a separate repo 2018-07-19 15:02:24 -05:00
shared_buffer.go TUN-528: Move cloudflared into a separate repo 2018-07-19 15:02:24 -05:00
shared_buffer_test.go TUN-528: Move cloudflared into a separate repo 2018-07-19 15:02:24 -05:00
signal.go TUN-528: Move cloudflared into a separate repo 2018-07-19 15:02:24 -05:00
streamerrormap.go TUN-528: Move cloudflared into a separate repo 2018-07-19 15:02:24 -05:00