Skip to content

build: emit line tables only in the dev profile - #1114

Open
DaniPopes wants to merge 1 commit into
mainfrom
dani/dev-line-tables
Open

DaniPopes wants to merge 1 commit into
mainfrom
dani/dev-line-tables

Conversation

@DaniPopes

Copy link
Copy Markdown
Member

Sets debug = "line-tables-only" in the workspace [profile.dev]. Panic backtraces in dev tests still show file and line numbers. Dev builds drop variable and type debug info, so a debugger shows fewer locals; use the profiling profile (or override CARGO_PROFILE_DEV_DEBUG=full) when you need them.

profile.test inherits from dev, so tests get the same setting. The release, profiling and bench profiles are unchanged, and the C and C++ precompile crates already set debug = false.

Median of 3 rebuilds after an edit to the add handler, dev profile, stable toolchain with the default packed dispatch backend, 32-core x86-64 Linux host. Clean builds start from an empty target directory.

Build Incremental Before After
evm2 clean on 15.0 s 14.7 s
evm2 rebuild on 0.58 s 0.58 s
evm2-cli clean on 31.0 s 27.4 s 🟢
evm2-cli rebuild on 4.37 s 3.46 s 🟢
evm2 clean off 15.2 s 14.8 s
evm2 rebuild off 2.26 s 2.00 s 🟢
evm2-cli clean off 30.2 s 27.7 s 🟢
evm2-cli rebuild off 11.3 s 9.04 s 🟢

The evm2 library crate is mostly generic, so its rebuild is cheap either way; the cost lands in evm2-cli.

Full debug info makes dev rebuilds of evm2-cli about 20% slower. Line tables keep
file and line numbers in panic backtraces.
@tempoxyz-bot

tempoxyz-bot commented Nov 21, 2026 •

Copy link
Copy Markdown

👁️ Cyclops Security Review

✅ Reviewed 942aa36 (latest) · Coverage: partial · no open findings · report
⚠️ Not checked: Dependency context is partial: vendoring available, Librarian unavailable (covered 0 of 1 requested), Sem unavailable
⚠️ Not checked: Debug information in release and benchmark builds: ruled out without reading the cited code at this commit
⚠️ Not checked: Interpreter assertion gates and default JIT safety checks: ruled out without reading the cited code at this commit
⚠️ 1 more unchecked question is listed in the report
ℹ️ Not verifiable from the source alone (needs running code or deployed state): Dependency preparation was partial and the advertised vendor directory was absent. The pinned source reader returned the locked cc source, but the delivered Cargo DEBUG value, final compiler arguments

This branch had an error being deployed

1 failed deployment
codspeed — 942aa369 Deployed Nov 21, 2026 by DaniPopes via codspeed (jit-mainnet) #3357
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants