Skip to content

Commit

Permalink
Auto merge of #129063 - the8472:cold-opt-size, r=Amanieu
Browse files Browse the repository at this point in the history
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
  • Loading branch information
bors committed Sep 2, 2024
2 parents 37e503c + 7da4a21 commit 6c83e48
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit 6c83e48

Please sign in to comment.