Skip to content

[Task]: Reduce Node.js bindings size on Linux when built with debug info #2568

@rajivshah3

Description

@rajivshah3

Task description

We need to build the Node.js bindings with debug information for better stacktraces in Sentry, but they are extremely large on Linux (over 580 MB). After some Googling, it seems like Rust may include debug info for dead code (rust-lang/rust#56068) and the ability to split the debug info to a separate file is only available on the nightly toolchain. Since we can't do much about those, we can try other approaches in the meantime, such as limiting the amount of debug info emitted (see benesch/materialize@02cc34c#diff-2e9d962a08321605940b5a657135052fbcef87b5e360662bb527c96d9a615542 and rustc docs)

Requirements

  • Reduce Linux binary size
  • Ensure stacktraces in Sentry are still adequate

Acceptance criteria

Above requirements are satisfied

Creation checklist

  • I have assigned this task to the correct people
  • I have added the most appropriate labels
  • I have linked the correct milestone and/or project

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

🎉 Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions