Skip to content

chore: default cpp builds to release mode#345

Merged
luoyuxia merged 1 commit intoapache:mainfrom
zhaohaidao:perf/pr1-release-default
Feb 16, 2026
Merged

chore: default cpp builds to release mode#345
luoyuxia merged 1 commit intoapache:mainfrom
zhaohaidao:perf/pr1-release-default

Conversation

@zhaohaidao
Copy link
Contributor

@zhaohaidao zhaohaidao commented Feb 16, 2026

Purpose

Switch C++ default build mode to Release. Debug builds place extra checks and unoptimized code on the hot path. For the scanner workload used in our backfill AB, this significantly reduces throughput and can hide the true effect of other optimizations.

Brief change log

Tests

  • Fixed workload(Our Internal index building scenarios, project ratio: 19/774):
    • ./custom-consume-table -- --task LdsHomeFeedQH --hours-ago 10 --bucket-mode range --max-buckets 4
    • timeout 180s per run
  • Reduction method:
    • Per run: positive [Progress] throughput=... r/s samples
Factor throughput (r/s)
release (B0) 26488.08
debug (F1) 14743.43
  • release vs debug: +79.66% throughput (~1.80x)

API and Format

Documentation

@zhaohaidao
Copy link
Contributor Author

@luoyuxia @leekeiabstraction @fresh-borzoni PTAL if u have time. Also, Happy Chinese New Year

Copy link
Contributor

@fresh-borzoni fresh-borzoni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@zhaohaidao Happy Chinese New Year :)
Ty for the PR
LGTM

Copy link
Contributor

@luoyuxia luoyuxia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@zhaohaidao Thank you for your hard work. Happy Chinese new year!

@luoyuxia luoyuxia merged commit a3ab06a into apache:main Feb 16, 2026
13 checks 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.

3 participants