Repository navigation
perf(command): avoid release-only configuration hash overhead - #1905
Merged
Merged
Conversation
Compile the full configuration hash snapshots and their paired invariant assertions only for debug builds. Ordinary worker orders and SetMetricDetail avoid the full-state scan in release builds while query hashes remain available. Document the release behavior and retained debug invariant coverage. Signed-off-by: Florentin Dubois <[email protected]>
Integrate the complete worker-query and TCP frontend fixes and the static upgrade-probe fixture from main. Preserve the command-hash optimization and retain both command lifecycle contracts. Signed-off-by: Florentin Dubois <[email protected]>
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.
Worker orders currently hash the entire configuration for invariant snapshots even when release builds compile out their assertions. Gate each snapshot and its matching assertions together, preserving debug checks and legitimate query hashing.
Controlled local A/B at 50,000 clusters reduced median command latency from about 39.4 ms to 3.6 ms for add, refusal and no-op paths. These are CLI-based local measurements, not production throughput.
Validation on the synchronized tree: nightly fmt; Rust 1.93.1 workspace all-feature build; all-target/all-feature Clippy with warnings denied; workspace tests with default features (3414 passed, 0 failed, 55 ignored, and only the four explicitly authorized local fuzz wrappers filtered). Updated lifecycle documentation and Unreleased notes.