Fix ArrayString to implement .push(char) faster

Previously we used formatting, which is a virtual call and quite the
detour. Now copy the utf-8 encoding code from Rust (thank you Alex
Crichton) and use that.
This commit is contained in:
bluss
2016-10-04 14:40:33 +02:00
parent f331bb1228
commit 7a7ec178b9
4 changed files with 87 additions and 2 deletions
+1
View File
@@ -55,6 +55,7 @@ use nodrop::NoDrop;
mod array;
mod array_string;
mod char_ext;
pub use array::Array;
pub use odds::IndexRange as RangeArgument;