Repository navigation
perf(runtime): run every partition of a busy settle without comparing - #2124
Merged
Merged
Conversation
A partitioned settle now starts by counting its dirty flags. When at least a third are set, or the untracked byte, it runs every partition and skips comparing what they write, except for objects read at or before the writer in the schedule, whose readers need the flag for the next settle. A settle where everything changes then costs 1.6x a single pass instead of about 2x. The flags gain a byte recording the decision. A partition also sets each reader's flag once, from one change bit per reader, instead of once per changed object and reader. Partitioning stays opt-in (#2013). Change-Id: I73f58f3a3aa13e9ac693ceccb5beb83cc47dfe25
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Contributor
Merge Queue Status
This pull request spent 44 minutes 9 seconds in the queue, including 41 minutes 49 seconds running CI. Required conditions to merge
|
40 of 71 tasks
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.
Part 3 of #2013, after #2106 and #2113: a partitioned settle in which many partitions are dirty runs all of them without comparing what they write. Partitioning stays opt-in. Whether it can be turned on by default is decided on measurements of
Estimatedacross other designs (Heliodor, the b2/b3 benchmarks, rtlmeter), which follow separately.What changes
Worst case and how often it triggers
Validation
celox --no-default-featuresis clean with-D warnings.celox+celox-test-suitewith partitioning forced on (Always) andsettle_checkon: no failures beyond the expected artifacts of feat(runtime)!: opt-in partitioned combinational settle #2106. The cross-check compares every settle against a run with all partitions flagged, so it covers both the full and the comparing path.celox-sltunit test: the settle reads the untracked byte and stores the full byte, the guards and comparing partitions read the full byte, and two objects are compared.--backend native, release), master vs branch: 4,227,004,114 / 4,165,403,896 Ir, same output. The JIT code is identical (2,777,200,097 Ir in both); the runtime difference is the inlining described in feat(runtime)!: opt-in partitioned combinational settle #2106, and the branch matches perf(runtime): mark settle partitions only when their inputs change #2113.