Skip to content

Remove debug info from release builds#950

Merged
jwbot merged 1 commit intomainfrom
remove-debug-info-from-release-builds
Feb 25, 2024
Merged

Remove debug info from release builds#950
jwbot merged 1 commit intomainfrom
remove-debug-info-from-release-builds

Conversation

@JonasWanke
Copy link
Member

This reduces the release size from 177.4 MB to 14.2 MB for me and also speeds up compile times:

# time cargo build --release

# Before:
real    0m6,217s
user    0m32,679s
sys     0m1,407s

# After:
real    0m4,735s
user    0m22,096s
sys     0m0,528s

AFAIK, the debug info was only there for flamegraphs, but we can still enable it specifically for generating flamegraphs.

Checklist

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

@JonasWanke JonasWanke added T: Build Type: Build & CI T: Performance Type: Performance Improvements labels Feb 25, 2024
@jwbot jwbot enabled auto-merge February 25, 2024 10:08
@jwbot jwbot added the P: Compiler: CLI Package: Candy's command-line interface label Feb 25, 2024
@jwbot jwbot merged commit 3c01853 into main Feb 25, 2024
@jwbot jwbot deleted the remove-debug-info-from-release-builds branch February 25, 2024 10:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P: Compiler: CLI Package: Candy's command-line interface T: Build Type: Build & CI T: Performance Type: Performance Improvements

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants