summary refs log tree commit diff
path: root/src/libserialize/opaque.rs
AgeCommit message (Collapse)AuthorLines
2016-10-18Inline read_{un,}signed_leb128 and opaque::Decoder functions.Nicholas Nethercote-0/+16
These functions are all hot in rustc and inlining them speeds up most of the rustc-benchmarks by 1--2%.
2016-10-10Avoid allocations in `Decoder::read_str`.Nicholas Nethercote-2/+3
`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-09-20Remove librbml and the RBML-tagged auto-encoder/decoder.Eduard Burtescu-0/+546