backtrace-rs icon indicating copy to clipboard operation
backtrace-rs copied to clipboard

Various cleanups

Open bjorn3 opened this issue 1 year ago • 1 comments

  • Be more consistent about avoiding imports of core and alloc types through mystd.
  • Avoid two unnecessary allocations in handle_split_dwarf.
  • Couple of other minor changes.

bjorn3 avatar Sep 18 '24 17:09 bjorn3

Just noticed that https://github.com/rust-lang/backtrace-rs/pull/666 also did most of the changes in this PR. Will rebase once that PR os merged.

bjorn3 avatar Sep 22 '24 07:09 bjorn3

@bjorn3 rebase please?

workingjubilee avatar Jan 03 '25 00:01 workingjubilee

Code size changes for a hello-world Rust program linked with libstd with backtrace:

On platform ubuntu-latest:

  • Original binary size: 383,480 B
  • Updated binary size: 379,384 B
  • Difference: -4,096 B (-1.07%)

github-actions[bot] avatar Jan 03 '25 12:01 github-actions[bot]

Code size changes for a hello-world Rust program linked with libstd with backtrace:

On platform ubuntu-latest:

  • Original binary size: 385,800 B
  • Updated binary size: 383,480 B
  • Difference: -2,320 B (-0.6%)

github-actions[bot] avatar Jan 06 '25 00:01 github-actions[bot]