diff options
| author | Jan Bujak <j@exia.io> | 2015-05-03 12:09:40 +0200 |
|---|---|---|
| committer | Jan Bujak <j@exia.io> | 2015-05-03 12:09:40 +0200 |
| commit | 91ea0c4f12574627dc9a17c7acce1c0258797a36 (patch) | |
| tree | 2489f310340eebf6b777b49d7747896b8076e4c2 /src/rustllvm/RustWrapper.cpp | |
| parent | 0d7d3ec9d2b314af0188a820c58fbd95ee905793 (diff) | |
| download | rust-91ea0c4f12574627dc9a17c7acce1c0258797a36.tar.gz rust-91ea0c4f12574627dc9a17c7acce1c0258797a36.zip | |
Add #[inline(always)] to str::from_utf8_unchecked
Without the inline annotation this:
str::from_utf8_unchecked( slice::from_raw_parts( ptr, len ) )
doesn't get inlined which can be pretty brutal performance-wise
when used in an inner loop of a low level string manipulation method.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
