Skip to content

perf: inline the basic block end check - #557

Open
quake wants to merge 1 commit into
nervosnetwork:developfrom
quake:perf/inline-block-end-develop
Open

quake wants to merge 1 commit into
nervosnetwork:developfrom
quake:perf/inline-block-end-develop

Conversation

@quake

@quake quake commented Dec 1, 2026

Copy link
Copy Markdown
Member

Trace construction calls is_basic_block_end_instruction for each decoded instruction. Add #[inline] so the compiler can put the check directly in the fill loop. The predicate and cycle accounting are unchanged.

On ckb-vm 0.24.15 with the RVC guard in both builds, the call disappeared from the x86-64 ASM trace fill loop. Total TransactionScriptsVerifier::verify() time fell by 1.05% and 1.40% on two mainnet batches (91 and 75 transactions; paired medians over 48 rounds on one worker). These are verifier measurements, not node throughput or a separate benchmark of this branch tip.

Tests on this branch: formatting, 82 default tests and 171 ASM tests passed.

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.

1 participant