about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
diff options
context:
space:
mode:
authorJoshua Nelson <jyn514@gmail.com>2021-03-06 23:30:49 -0500
committerJoshua Nelson <jyn514@gmail.com>2021-03-07 10:18:06 -0500
commit1e6d8495ba63255407ebea058f2194b65ccc307d (patch)
tree9b3d0ede61c646a66783d8497fe51162b58287e8 /src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
parentedeee915b1c52f97411e57ef6b1a8bd46548a37a (diff)
downloadrust-1e6d8495ba63255407ebea058f2194b65ccc307d.tar.gz
rust-1e6d8495ba63255407ebea058f2194b65ccc307d.zip
Avoid temporary allocations in `render_assoc_item`
`render_assoc_item` came up as very hot in a profile of rustdoc on
`bevy`.  This avoids some temporary allocations just to calculate the
length of the header.

This should be a strict improvement, since all string formatting was
done twice before.
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs')
0 files changed, 0 insertions, 0 deletions