Skip to content

Commit

Permalink
chore(dependencies): update to itoa 1
Browse files Browse the repository at this point in the history
  • Loading branch information
waywardmonkeys authored and seanmonstar committed Dec 14, 2021
1 parent f44f726 commit 02f3630
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Expand Up @@ -32,7 +32,7 @@ http-body = "0.4"
httpdate = "1.0"
httparse = "1.5.1"
h2 = { version = "0.3.9", optional = true }
itoa = "0.4.1"
itoa = "1"
tracing = { version = "0.1", default-features = false, features = ["std"] }
pin-project-lite = "0.2.4"
tower-service = "0.3"
Expand Down
4 changes: 2 additions & 2 deletions src/proto/h1/role.rs
Expand Up @@ -581,7 +581,7 @@ impl Server {
#[inline]
fn encode_headers<W>(
msg: Encode<'_, StatusCode>,
mut dst: &mut Vec<u8>,
dst: &mut Vec<u8>,
mut is_last: bool,
orig_len: usize,
mut wrote_len: bool,
Expand Down Expand Up @@ -838,7 +838,7 @@ impl Server {
"content-length: ",
header::CONTENT_LENGTH,
);
let _ = ::itoa::write(&mut dst, len);
extend(dst, ::itoa::Buffer::new().format(len).as_bytes());
extend(dst, b"\r\n");
Encoder::length(len)
}
Expand Down

1 comment on commit 02f3630

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark 'end_to_end'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 2.

Benchmark suite Current: 02f3630 Previous: f44f726 Ratio
http1_parallel_x10_res_1mb 9477218 ns/iter (± 795535) 3588780 ns/iter (± 452340) 2.64
http2_consecutive_x1_empty 159286 ns/iter (± 3367) 46432 ns/iter (± 578) 3.43
http2_consecutive_x1_req_100kb 357657 ns/iter (± 13982) 107283 ns/iter (± 2704) 3.33
http2_consecutive_x1_req_10b 182256 ns/iter (± 5201) 53661 ns/iter (± 383) 3.40
http2_parallel_x10_empty 472547 ns/iter (± 6194) 138886 ns/iter (± 1869) 3.40
http2_parallel_x10_req_10kb_100_chunks 27616533 ns/iter (± 8590394) 8249536 ns/iter (± 8870136) 3.35

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.