about summary refs log tree commit diff
path: root/src/librustdoc/json/mod.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-09-02 00:58:50 +0000
committerbors <bors@rust-lang.org>2024-09-02 00:58:50 +0000
commite71f9529121ca8f687e4b725e3c9adc3f1ebab4d (patch)
tree19fc505cf76ed238abfb7f6a1440a0c0aa1aa7bd /src/librustdoc/json/mod.rs
parent94885bc699512cfee8560e73c2a01ee6b4b76563 (diff)
parent79b5cfdf834a69fd048f2d904bb53026736e24ad (diff)
downloadrust-e71f9529121ca8f687e4b725e3c9adc3f1ebab4d.tar.gz
rust-e71f9529121ca8f687e4b725e3c9adc3f1ebab4d.zip
Auto merge of #129063 - the8472:cold-opt-size, r=Amanieu
Apply size optimizations to panic machinery and some cold functions

* std dependencies gimli and addr2line are now built with opt-level=s
* various panic-related methods and `#[cold]` methods are now marked `#[optimize(size)]`

Panics should be cold enough that it doesn't make sense to optimize them for speed. The only tradeoff here is if someone does a lot of backtrace captures (without panics) and printing then the opt-level change might impact their perf.

Seems to be the first use of the optimize attribute. Tracking issue #54882
Diffstat (limited to 'src/librustdoc/json/mod.rs')
0 files changed, 0 insertions, 0 deletions