Files
rust/src/libsyntax/parse
Nicholas Nethercote b043e11de2 Avoid allocations in Decoder::read_str.
`opaque::Decoder::read_str` is very hot within `rustc` due to its use in
the reading of crate metadata, and it currently returns a `String`. This
commit changes it to instead return a `Cow<str>`, which avoids a heap
allocation.

This change reduces the number of calls to `malloc` by almost 10% in
some benchmarks.

This is a [breaking-change] to libserialize.
2016-10-10 10:36:35 +11:00
..
2016-09-16 21:44:15 +03:00
2016-06-17 05:21:23 +00:00
2016-09-26 07:07:41 +02:00