rust/src/etc
bors 089682611f Auto merge of #38781 - SimonSapin:unishrink, r=alexcrichton
Reduce the size of static data in std_unicode::tables

`BoolTrie` works well for sets of code points spread out through most of Unicode’s range, but is uses a lot of space for sets with few, mostly low, code points.

This switches a few of its instances to a similar but simpler trie data structure.

CC @raphlinus, who wrote the original `BoolTrie`.

## Before

`size_of::<BoolTrie>()` is 1552, which is added to `table.r3.len() * 8 + t.r5.len() + t.r6.len() * 8`:

* `Cc_table`: 1632
* `White_Space_table`: 1656
* `Pattern_White_Space_table`: 1640
* Total: 4928 bytes

## After

`size_of::<SmallBoolTrie>()` is 32, which is added to `t.r1.len() + t.r2.len() * 8`:

* `Cc_table`: 51
* `White_Space_table`: 273
* `Pattern_White_Space_table`: 193
* Total: 517 bytes

## Difference

Every Rust program with `std` statically linked should be about 4 KB smaller.
2017-01-07 21:28:47 +00:00
..
platform-intrinsics PTX support 2016-12-26 21:06:23 -05:00
test-float-parse Remove unused code 2016-09-17 23:07:11 -07:00
third-party
adb_run_wrapper.sh
apple-darwin.supp
char_private.py Fix fmt::Debug for strings, e.g. for Chinese characters 2016-11-18 14:45:59 +01:00
check-sanitycheck.py
check-summary.py
CONFIGS.md Add sublime-rust to CONFIGS.md. 2016-08-22 01:24:01 -04:00
ctags.rust
debugger_pretty_printers_common.py Add pretty printing of unions in debuggers 2017-01-01 19:34:06 +10:00
dec2flt_table.py
Dockerfile Remove CMake workaround 2016-08-01 18:03:22 +09:00
gdb_load_rust_pretty_printers.py
gdb_rust_pretty_printing.py modern style classes 2016-09-17 23:09:21 -07:00
generate-deriving-span-tests.py rustc: rework stability to be on-demand for type-directed lookup. 2016-11-28 04:18:11 +02:00
generate-keyword-tests.py Fix keyword parsing tests 2016-04-24 21:35:50 +03:00
get-stage0.py Avoid redundant downloads when bootstrapping 2016-07-04 16:37:46 +02:00
htmldocck.py print enum variant fields in docs 2016-05-30 16:11:53 +02:00
indenter
lldb_batchmode.py pep8 prefers triple quoted with double quotes 2016-09-17 23:05:20 -07:00
lldb_rust_formatters.py Add pretty printing of unions in debuggers 2017-01-01 19:34:06 +10:00
local_stage0.sh Add libproc_macro from local rust to stage0 2016-10-19 00:12:42 -07:00
make-win-dist.py
mklldeps.py Update parsing llvm-config output 2016-07-29 10:29:59 +02:00
rust-gdb
rust-lldb Make rust-lldb warn about unsupported versions of LLDB 2016-07-04 19:37:36 -04:00
sugarise-doc-comments.py
unicode.py Reduce the size of static data in std_unicode::tables. 2017-01-03 08:28:58 +01:00
x86.supp
ziggurat_tables.py