Skip to content

perf(internals): remove the remaining per-instance listener and labels costs - #2599

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

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

Conversation

@rkaraivanov

Copy link
Copy Markdown
Member

Description

  • Async context consumer: one context-provider listener per document and a set of the unanswered consumers, not one listener per host.
  • Id resolver: the resolvers of a root share one set, not an EventTarget, which scans all listeners on each add and remove.
  • ARIA projector: resolve the host name in hostUpdate, inside the labels cache of the update, so each update reads the labels once.

Type of Change

  • Refactoring (code improvements without functional changes)

Checklist

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

…s costs

- Async context consumer: one context-provider listener per document
  and a set of the unanswered consumers, not one listener per host.
- Id resolver: the resolvers of a root share one set, not an
  EventTarget, which scans all listeners on each add and remove.
- ARIA projector: resolve the host name in hostUpdate, inside the
  labels cache of the update, so each update reads the labels once.
@rkaraivanov
rkaraivanov merged commit 548deab into master Nov 12, 2026
10 checks passed
@rkaraivanov
rkaraivanov deleted the rkaraivanov/quadratic-cost-leftovers branch November 12, 2026 17:02
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