rust/src/libsyntax
Simonas Kazlauskas 23d24ff667 Rollup merge of #30565 - michaelwoerister:opaque_encoder, r=brson
This PR changes the `emit_opaque` and `read_opaque` methods in the RBML library to use a space-efficient binary encoder that does not emit any tags and uses the LEB128 variable-length integer format for all numbers it emits.

The space savings are nice, albeit a bit underwhelming, especially for dynamic libraries where metadata is already compressed.

| RLIBs        |  NEW   |   OLD     |
|--------------|--------|-----------|
|libstd        | 8.8 MB |  10.5 MB  |
|libcore       |15.6 MB |   19.7 MB |
|libcollections| 3.7 MB |    4.8 MB |
|librustc      |34.0 MB |   37.8 MB |
|libsyntax     |28.3 MB |   32.1 MB |

| SOs           |     NEW   |    OLD |
|---------------|-----------|--------|
| libstd        |  4.8 MB   | 5.1 MB |
| librustc      |  8.6 MB   | 9.2 MB |
| libsyntax     |  7.8 MB   | 8.4 MB |

At least this should make up for the size increase caused recently by also storing MIR in crate metadata.

Can this be a breaking change for anyone?
cc @rust-lang/compiler
2015-12-31 18:52:20 +02:00
..
diagnostics use structured errors 2015-12-30 14:27:59 +13:00
errors Rebasing and review comments 2015-12-30 14:54:36 +13:00
ext Auto merge of #30526 - Ms2ger:PathParameters, r=brson 2015-12-30 14:19:08 +00:00
parse Auto merge of #30598 - est31:macro_export_help_note, r=Manishearth 2015-12-31 06:16:12 +00:00
print Auto merge of #30526 - Ms2ger:PathParameters, r=brson 2015-12-30 14:19:08 +00:00
util use structured errors 2015-12-30 14:27:59 +13:00
abi.rs Port the standard crates to PNaCl/NaCl. 2015-10-28 17:23:28 -05:00
ast.rs Stop re-exporting PathParameters's variants. 2015-12-22 17:12:33 +01:00
ast_util.rs Stop re-exporting PathParameters's variants. 2015-12-22 17:12:33 +01:00
attr.rs use structured errors 2015-12-30 14:27:59 +13:00
codemap.rs Use a more efficient encoding for opaque data in RBML. 2015-12-28 12:15:44 -05:00
config.rs move error handling from libsyntax/diagnostics.rs to libsyntax/errors/* 2015-12-17 09:35:50 +13:00
entry.rs Cleanup interfaces of Name, SyntaxContext and Ident 2015-09-24 23:05:02 +03:00
feature_gate.rs use structured errors 2015-12-30 14:27:59 +13:00
fold.rs Stop re-exporting PathParameters's variants. 2015-12-22 17:12:33 +01:00
lib.rs use structured errors 2015-12-30 14:27:59 +13:00
owned_slice.rs Deprecate name OwnedSlice and don't use it 2015-12-18 00:52:56 +03:00
ptr.rs Improve OwnedSlice and use it in HIR 2015-12-19 04:20:11 +03:00
show_span.rs use structured errors 2015-12-30 14:27:59 +13:00
std_inject.rs Stop re-exporting AttrStyle's variants and rename them. 2015-10-01 18:03:34 +02:00
str.rs syntax: Copy unstable str::char_at into libsyntax 2015-04-21 10:23:53 -07:00
test.rs Rollup merge of #30420 - petrochenkov:owned2, r=nrc 2015-12-18 20:02:12 +05:30
visit.rs Stop re-exporting PathParameters's variants. 2015-12-22 17:12:33 +01:00