Repository navigation
secantus-pg: optimise the runtime crates in the debug build; worksteal the backlog step - #2561
Merged
Merged
Conversation
…l the backlog step Third-party crates at opt-level 2 and our runtime crates at 1, with the planner and server crates at 0. Measured: compile 50 s -> 72 s, 328 corpus/rule/builtin tests 292 s -> 170 s, the backlog regression tests 546 s -> 252 s. Debug assertions and overflow checks stay on. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QpXX75h9VN88qdKV17kGNS
jdrumgoole
force-pushed
the
ci-pg-test-profile
branch
from
November 9, 2026 16:56
764942c to
145e1c7
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The PG suites spend their time inside a debug
secantusd-pg. This PR optimizes the code the server spends that time in, and leaves the two crates that dominate compile time at debug.crates/secantus-pg/Cargo.toml:opt-level = 2;secantus-core,-storage,-wt,-pgwire,-pgcatalogand-authat 1;secantus-pgplanandsecantus-pgat 0. They are 325k of our 458k lines.debug-assertionsandoverflow-checksstay on everywhere, because a per-package opt-level changes neither.--dist worksteal, as the suites step already does. Its isolation specs run up to 126 s each.Measured (2026-11-09, one tree, our crates rebuilt as CI does on a cache hit,
-n 4)¹ The corpora, the rule trees and the builtin coverage. Every run passed every test.
Not done yet: splitting the backlog shard into two jobs is held until this PR's numbers are measured on CI. With the faster server, that shard should come down to about the differential shard's length, so a split would barely shorten the run.
First run is slow: the cache key changes with
Cargo.toml, so this PR's own first run compiles the third-party crates cold. Runs after the merge use the cache thatmainsaves.Test plan
secantus-pgcargo tests under the new profile.🤖 Generated with Claude Code
https://claude.ai/code/session_01QpXX75h9VN88qdKV17kGNS