8000 Filter no-op monitors and index reverse loops in Dagger Monitors by copybara-service[bot] · Pull Request #5359 · google/dagger · GitHub
[go: up one dir, main page]

Skip to content

Filter no-op monitors and index reverse loops in Dagger Monitors - #5359

Merged
copybara-service[bot] merged 1 commit into
masterfrom
test_1021684689
Nov 17, 2026
Merged

copybara-service[bot] merged 1 commit into
masterfrom
test_1021684689

Conversation

@copybara-service
Copy link
Copy Markdown

Filter no-op monitors and index reverse loops in Dagger Monitors

Filter out ProductionComponentMonitor.noOp() and ProducerMonitor.noOp() (isNullOrNoOp) in Monitors (NonThrowingProductionComponentMonitor and DelegatingProductionComponentMonitor) so components and producers with zero active monitors return the singleton noOp() monitor and those with one active monitor collapse to NonThrowing* instead of allocating a Delegating* wrapper. Also use indexed reverse loops in DelegatingProducerMonitor (dependenciesRequested, methodFinished, succeeded, failed) so reverse callbacks read delegates.get(i) directly instead of dispatching through ImmutableList.reverse() (ReverseImmutableList and AbstractIndexedListIterator).

RELNOTES=n/a

Filter out `ProductionComponentMonitor.noOp()` and `ProducerMonitor.noOp()` (`isNullOrNoOp`) in `Monitors` (`NonThrowingProductionComponentMonitor` and `DelegatingProductionComponentMonitor`) so components and producers with zero active monitors return the singleton `noOp()` monitor and those with one active monitor collapse to `NonThrowing*` instead of allocating a `Delegating*` wrapper. Also use indexed reverse loops in `DelegatingProducerMonitor` (`dependenciesRequested`, `methodFinished`, `succeeded`, `failed`) so reverse callbacks read `delegates.get(i)` directly instead of dispatching through `ImmutableList.reverse()` (`ReverseImmutableList` and `AbstractIndexedListIterator`).

RELNOTES=n/a
PiperOrigin-RevId: 1023451497
@copybara-service
copybara-service Bot merged commit 7cc9622 into master Nov 17, 2026
1 check passed
@copybara-service
copybara-service Bot deleted the test_1021684689 branch November 17, 2026 07:42
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

0