Skip to content

perf(internals): scope label reads, provider retries and id lookups - #2600

Merged
rkaraivanov merged 1 commit into
masterfrom
rkaraivanov/quadratic-cost-leftovers-2
Nov 12, 2026
Merged

rkaraivanov merged 1 commit into
masterfrom
rkaraivanov/quadratic-cost-leftovers-2

Conversation

@rkaraivanov

Copy link
Copy Markdown
Member

Description

  • Labels: skip the live list for a host with an id in a shadow root that has no , such as the inner inputs of combo and select.
  • Async consumer: a late provider retries only the consumers it contains in the same root; other roots still retry, because closed shadow roots hide slot assignment.
  • Id resolver: each resolver watches one id and checks it with one getElementById per mutation batch, not a scan of every changed subtree. The button resolves commandfor only through it.

Type of Change

  • Refactoring (code improvements without functional changes)

Checklist

  • My code follows the project's coding standards
  • I have tested my changes locally

- Labels: skip the live list for a host with an id in a shadow root
  that has no <label>, such as the inner inputs of combo and select.
- Async consumer: a late provider retries only the consumers it
  contains in the same root; other roots still retry, because closed
  shadow roots hide slot assignment.
- Id resolver: each resolver watches one id and checks it with one
  getElementById per mutation batch, not a scan of every changed
  subtree. The button resolves commandfor only through it.
@rkaraivanov
rkaraivanov merged commit 7bb8245 into master Nov 12, 2026
10 checks passed
@rkaraivanov
rkaraivanov deleted the rkaraivanov/quadratic-cost-leftovers-2 branch November 12, 2026 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant