about summary refs log tree commit diff
path: root/src/libserialize/opaque.rs
AgeCommit message (Collapse)AuthorLines
2020-06-02Rename directories for some compiler crates from `libx` to `librustc_x`Vadim Petrochenkov-318/+0
libarena -> librustc_arena libfmt_macros -> librustc_parse_format libgraphviz -> librustc_graphviz libserialize -> librustc_serialize
2020-01-30Remove unused `read_uleb128` parameter.Nicholas Nethercote-6/+6
2019-12-22Format the worldMark Rousskov-17/+9
2019-06-25Use f{32,64}::from_bitsIgor Matuszewski-2/+2
2019-02-09Cleanup importsTaiki Endo-1/+1
2019-02-09Move some tests into the tests directoryTaiki Endo-285/+0
This moves tests in opaque.rs and tests other than tests that require private items in json.rs into tests/opaque.rs and tests/json.rs.
2019-02-07Transition libserialize to 2018 editionHirokazu Hata-4/+4
2018-12-25Remove licensesMark Rousskov-10/+0
2018-12-21Inline tweaksJohn Kåre Alsaker-0/+1
2018-09-11renamed emit_nil to emit_unitkenta7777-1/+1
2018-09-11Revert "renamed emit_nil to emit_unit"kenta7777-1/+1
This reverts commit d02a5ffaed9c395ae62ee12d0f4e04946c62edb1.
2018-09-11Revert "renamed read_nil to read_unit"kenta7777-1/+1
This reverts commit 37d0600c23ba1890346078bd7f310e15915417b2.
2018-09-10renamed read_nil to read_unitkenta7777-1/+1
2018-09-10renamed emit_nil to emit_unitkenta7777-1/+1
2018-08-15Mark libserialize functions as inlineBurntPizza-0/+3
2018-06-27Make opaque::Encoder append-only and make it infallibleJohn Kåre Alsaker-28/+22
2018-01-20Auto merge of #46919 - michaelwoerister:new-leb128, r=sfacklerbors-19/+42
Speed up leb128 encoding and decoding for unsigned values. Make the implementation for some leb128 functions potentially faster. @Mark-Simulacrum, could you please trigger a perf.rlo run?
2018-01-09[incremental] Specialize encoding and decoding of FingerprintsWesley Wiser-3/+4
This saves the storage space used by about 32 bits per `Fingerprint`. On average, this reduces the size of the `/target/{mode}/incremental` folder by roughly 5%. Fixes #45875
2018-01-09Make leb128 coding a bit faster.Michael Woerister-19/+42
2018-01-06Add raw bytes functionsWesley Wiser-0/+14
Part of #45875
2017-12-01incr.comp.: Load diagnostics from previous session lazily and clean up ↵Michael Woerister-0/+4
on-disk-cache persistence code.
2017-08-15use field init shorthand EVERYWHEREZack M. Davis-2/+2
Like #43008 (f668999), but _much more aggressive_.
2017-02-03Bump version, upgrade bootstrapAlex Crichton-2/+0
This commit updates the version number to 1.17.0 as we're not on that version of the nightly compiler, and at the same time this updates src/stage0.txt to bootstrap from freshly minted beta compiler and beta Cargo.
2016-12-30Such large. Very 128. Much bits.Simonas Kazlauskas-2/+22
This commit introduces 128-bit integers. Stage 2 builds and produces a working compiler which understands and supports 128-bit integers throughout. The general strategy used is to have rustc_i128 module which provides aliases for iu128, equal to iu64 in stage9 and iu128 later. Since nowhere in rustc we rely on large numbers being supported, this strategy is good enough to get past the first bootstrap stages to end up with a fully working 128-bit capable compiler. In order for this strategy to work, number of locations had to be changed to use associated max_value/min_value instead of MAX/MIN constants as well as the min_value (or was it max_value?) had to be changed to use xor instead of shift so both 64-bit and 128-bit based consteval works (former not necessarily producing the right results in stage1). This commit includes manual merge conflict resolution changes from a rebase by @est31.
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