]> git.lizzy.rs Git - rust.git/commit
std: mark two helper functions #[inline].
authorHuon Wilson <dbau.pp+github@gmail.com>
Sat, 22 Feb 2014 22:11:36 +0000 (09:11 +1100)
committerHuon Wilson <dbau.pp+github@gmail.com>
Sat, 22 Feb 2014 22:11:36 +0000 (09:11 +1100)
commit713ca7d5402fb33ea1ac4f34a50618d60156d1d3
treed7a4f340fa451b07a6f80e457341e11c404fa049
parent56cf237ee24df51acc05634c962cd20a66477fa4
std: mark two helper functions #[inline].

`str::utf8_char_width` and `char::from_u32` are tiny, which means it's a
big performance hit to call them in a tight loop outside libstd.
src/libstd/char.rs
src/libstd/str.rs