about summary refs log tree commit diff
path: root/src/test/incremental/thinlto
diff options
context:
space:
mode:
authorUlrik Sverdrup <bluss@users.noreply.github.com>2016-11-21 23:26:31 +0100
committerUlrik Sverdrup <bluss@users.noreply.github.com>2016-11-21 23:26:31 +0100
commit20bd7f000fa788b9d38c5d664bb19b1ba38af850 (patch)
tree2256c777d7d36306c60b23b1f47e34fa0a72072d /src/test/incremental/thinlto
parent5a3aa2f73cbb08c6e41418c5378791fa24a66146 (diff)
downloadrust-20bd7f000fa788b9d38c5d664bb19b1ba38af850.tar.gz
rust-20bd7f000fa788b9d38c5d664bb19b1ba38af850.zip
utf8 validation: Compute block end upfront
Simplify the conditional used for ensuring that the whole word loop is
only used if there are at least two whole words left to read.

This makes the function slightly smaller and simpler, a 0-5% reduction
in runtime for various test cases.
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions