87ede2da54
This commit improves the compile time of `rustc_platform_intrinsics` from 23s to 3.6s if compiling with `-O` and from 77s to 17s if compiling with `-O -g`. The compiled rlib size also drops from 3.1M to 1.2M. The wins here were gained by removing the destructors associated with `Type` by removing the internal `Box` and `Vec` indirections. These destructors meant that a lot of landing pads and extra code were generated to manage the runtime representations. Instead everything can basically be statically computed and shoved into rodata, so all we need is a giant string compare to lookup what's what. Closes #28273 |
||
---|---|---|
.. | ||
platform-intrinsics | ||
test-float-parse | ||
third-party | ||
adb_run_wrapper.sh | ||
apple-darwin.supp | ||
check-binaries.py | ||
check-sanitycheck.py | ||
check-summary.py | ||
CONFIGS.md | ||
ctags.rust | ||
debugger_pretty_printers_common.py | ||
dec2flt_table.py | ||
errorck.py | ||
featureck.py | ||
gdb_load_rust_pretty_printers.py | ||
gdb_rust_pretty_printing.py | ||
generate-deriving-span-tests.py | ||
generate-keyword-tests.py | ||
get-snapshot.py | ||
htmldocck.py | ||
indenter | ||
latest-unix-snaps.py | ||
licenseck.py | ||
lldb_batchmode.py | ||
lldb_rust_formatters.py | ||
local_stage0.sh | ||
make-snapshot.py | ||
make-win-dist.py | ||
maketest.py | ||
mirror-all-snapshots.py | ||
mklldeps.py | ||
rust-gdb | ||
rust-lldb | ||
snapshot.py | ||
sugarise-doc-comments.py | ||
tidy.py | ||
unicode.py | ||
x86.supp | ||
ziggurat_tables.py |