Skip to content

perf(theming): Walk resource dictionaries without an iterator - #24523

Merged
ajpinedam merged 4 commits into
masterfrom
dev/mazi/perf-resource-dictionaries
Oct 27, 2026
Merged

ajpinedam merged 4 commits into
masterfrom
dev/mazi/perf-resource-dictionaries

Conversation

@MartinZikmund

@MartinZikmund MartinZikmund commented Sep 16, 2026 •

Copy link
Copy Markdown
Member

GitHub Issue: closes #24522

PR Type:

🔄 Refactoring (no functional changes, no api changes)

What changed? 🚀

DependencyObject.GetResourceDictionaries returns the ResourceDictionaries in scope, nearest first. It is a C# iterator, so every call allocates a state machine — including the very common case where no ancestor carries resources and the walk yields nothing. It runs once per {ThemeResource} reference (an object with N references performs N separate ancestor walks), twice per element Enter for the implicit-style lookup, and on every visual-tree resource retrieval.

EnumerateResourceDictionaries now returns a struct enumerator that performs that walk without allocating, and the three hot lookups use it: Phase A of UpdateThemeReference, GetImplicitStyle, and ResourceResolver.TryVisualTreeRetrieval. The iterator remains, but delegates to the walker, so the visit order — containing dictionary, then each ancestor's non-empty Resources, then the application resources — exists in exactly one place and the two .ToArray() callers are untouched.

Two details worth calling out:

  • The parent link is read after the consumer's body, exactly as the iterator does. This matters: ResourceDictionary.TryGetValue can hit TryMaterializeLazy, which runs a generated ResourceInitializer under a pushed resolver scope — arbitrary XAML construction — from inside the loop body. Reading fe.Parent before yielding would have let a re-parent during materialization send the walk up a stale chain, resolving from the wrong ancestor scope. The failure mode there is a subtly wrong brush, not an exception.
  • Order is now pinned by a test. Given_Style.When_ImplicitStyle_Nearest_Scope_Wins defines the same implicit style at application level and on a nearer ancestor and asserts the nearest wins. The pre-existing implicit-style tests define each key at a single level, so they would pass even if the walk were reordered or the application-resources tail dropped.

Measured impact 📊

Managed bytes allocated per iteration on the UI thread (GC.GetAllocatedBytesForCurrentThread, median of 7 rounds, two runs per side; reproduces within ~1 %):

Workload Before After Δ
Enter + Leave TextBox 30,590 B 22,152 B −27.6 %
Enter + Leave Button 18,592 B 14,520 B −21.9 %
Enter + Leave a 40-control page 796,857 B 650,481 B −18.4 %
Enter + Leave CheckBox 24,744 B 20,488 B −17.2 %
Enter + Leave ListViewItem 37,828 B 32,024 B −15.3 %
Enter + Leave ToggleSwitch 48,139 B 41,292 B −14.2 %
ListView (2,000 items) scroll step 178,516 B 157,212 B −11.9 %
Theme toggle on that page 540,152 B 509,512 B −5.7 %

Over 1,000 scroll steps, so that the collection count resolves:

Metric (1,000 scroll steps) Before After Δ
Allocated per step 189,498 B 168,583 B −11.0 %
Gen0 collections, total 14–15 13 −1 to −2

Each build reproduced its own gen0 count across runs, but a later master build measured 14 rather than 15, so the gen0 delta sits at the edge of this instrument's resolution; the byte figures are the reliable ones. The claim here is GC pressure, not frame time: wall-clock on the measuring machine varied by more than the effect between identical runs, so it is not reported.

Measured with a headless Skia app (Uno.UI.Runtime.Skia.Headless) project-referencing the framework, with Fluent resources merged.

Validation ✅

Runtime tests, Skia Desktop — Given_Style, Given_ThemeResource, Given_ElementTheme, Given_ElementTheme_Resolution_Regression, Given_MergedAppResources_ThemeResource, Given_Theme_Materialization, Given_FrameworkElement_ThemeResources, Given_ResourceDictionary, Given_ResourceResolver, Given_VisualStateManager, Given_Storyboard, Given_MenuFlyout, Given_TextBlock, Given_Run, Given_Hyperlink, Given_Button, Given_CheckBox, Given_ToggleSwitch, Given_ListViewBase, Given_DependencyObjectCollection: 517 run, 509 passed, 15 skipped, 1 inconclusive, 7 failed.

The 7 failures are the Given_ListViewBase layout-rounding/timeout set plus Given_TextBlock.When_Inlines_Transitively_Change, all of which fail identically on a build of the merge-base without this change.

The new test was checked against two deliberately broken walkers. With the walk skipping ancestor dictionaries entirely it fails, along with the two pre-existing implicit-style tests. With the walk visiting the application resources before the ancestors — an order inversion, which is the regression class this rewrite could actually introduce — it is the only test in Given_Style that fails; When_ImplicitStyle, When_Style_Flows_To_Popup and When_StyleFailsToApply all still pass. It also passes on a build of the merge-base, so it asserts behaviour this PR preserves rather than introduces.

Perf axis: work removed 📊

This change trades an allocation for a struct walk, so the table above is the performance evidence: the CPU benefit is the GC pressure removed, not fewer instructions along the walk. Stated exactly, and deterministically:

Metric Before After
Heap allocations per GetResourceDictionaries / EnumerateResourceDictionaries call 1 iterator state machine 0
Ancestor-walk semantics (visit order, parent-read timing) unchanged unchanged

CPU time is deliberately not reported, and that is demonstrable rather than asserted. Re-measuring on this machine with a thread-cycle counter (QueryThreadCycleTime sampled on the UI thread, which is where the work runs) showed that reversing the order of the two measurement phases flips the sign of the apparent result, and that the spread within a single phase reaches 74–97 % on the same build and workload. Any timing column produced here would report machine state rather than the change. Wall-clock is worse and is not reported either. The allocation figures above are unaffected: bytes are deterministic and reproduce to ~10 B on the low-variance workloads.

Provenance. Measured with a headless Skia app (Uno.UI.Runtime.Skia.Headless) project-referencing the framework, with Fluent resources merged; bytes via GC.GetAllocatedBytesForCurrentThread on the dispatcher thread, median of 7 rounds, two runs per side. Not BenchmarkDotNet — this repository has no BenchmarkDotNet harness, and the workload runs on the dispatcher thread, which is where the allocation counter has to be read.

PR Checklist ✅

  • 🧪 Added Runtime tests, UI tests, or a manual test sample (for bug fixes / features, if applicable)
  • 📚 Docs have been added/updated following the documentation template (for bug fixes / features) — n/a, no API or behaviour change for app authors
  • 🖼️ Validated PR Screenshots Compare Test Run results. — to check once CI has run
  • ❗ Contains NO breaking changes
  • 👀 Reviewed 2 other open pull requests (optional but appreciated!)

Follow-ups this PR deliberately leaves open

  • UpdateAllThemeReferences still performs one full ancestor walk per theme reference; collapsing N walks into one is the larger win, but the surrounding code notes that updating one reference can cascade and modify the theme-reference map, and a newly resolved Style can change the ancestor scope mid-loop.
  • The two GetResourceDictionaries(...).ToArray() callers in UpdateResourceBindings still allocate an array per theme update; they could rent from ArrayPool, as UpdateAllThemeReferences already does.
  • ResourceResolver.TryVisualTreeRetrieval still allocates a LINQ enumerator from CurrentScope.Sources.FirstOrDefault() on this same path.
  • ApplyStyles re-walks for an implicit style it usually already resolved; caching would remove the walks rather than cheapen them.
  • An unresolved theme reference returns with no log at any level — the "my ThemeResource didn't apply" support case.

🤖 Generated with Claude Code

https://claude.ai/code/session_012QzKQawubFcPPX9JSoZLkX


Internal tracking: unoplatform/uno-private#2349 (finding 6), under unoplatform/uno-private#2346.

Copilot AI lite review requested due to automatic review settings September 16, 2026 09:10
@github-actions

github-actions Bot commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @MartinZikmund's task in 3m 3s —— View job


Review complete ✅

Todo list

  • Gather context (diff, changed files, AGENTS.md rules)
  • Understand request (code review against AGENTS.md)
  • Review DependencyObject.Store.cs walker/enumerator changes
  • Review DependencyObject.Theming.cs and ResourceResolver.cs call-site changes
  • Review new runtime test Given_Style.When_ImplicitStyle_Nearest_Scope_Wins
  • Post inline comments for findings
  • Post summary

Verdict: Ship

No inline comments were posted — I traced ResourceDictionaryWalker.MoveNext() (DependencyObject.Store.cs:1593-1667) state-by-state against the original iterator (containing dictionary → deferred-parent ancestor walk → app resources) and it is a faithful, semantics-preserving translation:

  • The _advanceFrom deferral correctly reproduces the iterator's "read fe.Parent only after the consumer's loop body ran" ordering, which matters because TryGetValue can trigger TryMaterializeLazy and re-parent the tree mid-walk.
  • _appResourcesVisited/_containingDictionary are consumed exactly once and the walker is idempotently exhausted (false forever) after the app-resources branch, so no re-yield or infinite-loop risk.
  • All three call sites (UpdateThemeReference Phase A, GetImplicitStyle, ResourceResolver.TryVisualTreeRetrieval) pass the same arguments the removed GetResourceDictionaries(...) calls did — no default-parameter drift.
  • The two .ToArray() callers in UpdateResourceBindings are untouched, and GetResourceDictionaries still exists as a thin iterator wrapper over the new walker, so its <see cref> stays valid.
  • The struct-pattern foreach (duck-typed GetEnumerator/MoveNext/Current, no IEnumerable<T>/IEnumerator<T> implemented) avoids both the state-machine allocation and any interface boxing, backing the measured allocation drop.
  • The new test asserts the one thing the pre-existing single-level tests can't catch (order/tail-drop regressions), and does fail against the two broken-walker variants described in the PR body.

No SOLID/async/cross-platform/DependencyProperty/event-type/XAML/commit-format issues — this is internal, non-UI-suffixed shared code touched uniformly across all targets, and the commit type (perf(theming)) is correctly scoped.

Note on validation method: this was a code-level review (manual trace + diff read), not a rebuild/rerun — I relied on the author's extensive runtime-test evidence in the PR description rather than re-executing the suite myself.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Address the requested test metadata, platform-condition, and Android coverage updates.

Pull request overview

This PR reduces theming/resource lookup allocations with a shared struct-based resource dictionary walker while preserving lookup order.

Changes:

  • Adds allocation-free resource dictionary enumeration.
  • Updates theme, implicit-style, and visual-tree lookups.
  • Adds nearest-scope precedence regression coverage.
File summaries
File Summary
src/Uno.UI/UI/Xaml/ResourceResolver.cs Uses the allocation-free walker for visual-tree retrieval.
src/Uno.UI/UI/Xaml/DependencyObject.Theming.cs Uses the walker during theme reference resolution.
src/Uno.UI/UI/Xaml/DependencyObject.Store.cs Implements the shared resource dictionary walker.
src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml/Given_Style.cs Adds implicit-style scope-order regression coverage.
Review details

Suppressed comments (3)

src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml/Given_Style.cs:99

  • This new regression test is skipped on Android, so the nearest-scope ordering introduced by the shared ResourceDictionaryWalker has no coverage on that target even though the change is intended for all platforms. Please add an Android-compatible test for the same precedence (or remove the skip); reusing the existing ContentControl skip leaves this new behavior unverified there.
		[Ignore("ContentControl implicit styles don't pass in CI on Android, as for When_ImplicitStyle")]

src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml/Given_Style.cs:97

  • This new regression test directly covers issue #24522, but it has no GitHubWorkItem metadata. Please annotate it so the test remains traceable to the issue it protects, as required for issue-covering runtime tests.
		[TestMethod]
		[RunsOnUIThread]

src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml/Given_Style.cs:100

  • Please use a PlatformCondition attribute instead of a compile-time #if around this platform skip. Runtime-test conventions keep platform selection in attributes so discovery and filtering remain consistent across targets; exclude RuntimeTestPlatforms.Android directly.
#if __ANDROID__
		[Ignore("ContentControl implicit styles don't pass in CI on Android, as for When_ImplicitStyle")]
#endif
  • Files reviewed: 4/4 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

@unodevops

Copy link
Copy Markdown
Contributor

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 233998 found UI Test snapshots differences: skia-linux-screenshots: 57, skia-windows-screenshots: 2310, wasm: 11

Details
  • skia-linux-screenshots: 57 changed over 2348

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • ButtonClippingTestsControl.png-dark
    • ButtonClippingTestsControl.png
    • Buttons.png-dark
    • Buttons.png
    • ClipboardTests.png-dark
    • CalendarView_Theming.png-dark
    • CalendarView_Theming.png
    • ContextRequested.png-dark
    • ContextRequested.png
    • DropDownButtonPage.png-dark
    • DropDownButtonPage.png
    • Examples.png-dark
    • Examples.png
    • ExpanderColorValidationPage.png-dark
    • ExpanderColorValidationPage.png
    • ImageIconPage.png-dark
    • DisplayInformation.png-dark
    • Gamepad_CurrentReading.png-dark
    • Gamepad_CurrentReading.png
    • Gamepad_Enumeration.png-dark
  • skia-windows-screenshots: 2310 changed over 2408

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • AnimatedIconPage.png-dark
    • AndroidWindowInsets.png-dark
    • AppBarButtonTest.png
    • AppWindowClosing.png-dark
    • AppBarToggleButtonTest.png
    • AppWindowPresenters.png-dark
    • AppBar_KeyBoard.png-dark
    • ArcSegment.png
    • ApplicationViewMode.png-dark
    • Attributed_text_Simple.png
    • AppWindowClosing.png
    • AutoBorderStretchwithleftmargin.png
    • AppWindowTitleBar Properties.png-dark
    • AutomationProperties_Name.png-dark
    • Arrange_Performance01.png-dark
    • AutoSuggestBox_BitmapIcon.png
    • Attributed_text_Supserscript.png
    • AutoSuggestBox_Reason.png-dark
    • AuthenticationBroker_Demo.png-dark
    • AutoSuggestBox_Reason.png
  • wasm: 11 changed over 1076

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • UITests.Shared.Microsoft_UI_Xaml_Controls.ExpanderTests.WinUIExpanderPage
    • SamplesApp.Wasm.Windows_UI_Xaml_Controls.ListView.ListView_IsSelected
    • UITests.Microsoft_UI_Xaml_Controls.WebView2Tests.WebView2_NavigationProperties
    • SamplesApp.Windows_UI_Xaml_Controls.ListView.ListViewSelectedItems
    • UITests.Shared.Windows_UI_Xaml_Controls.MediaPlayerElement.MediaPlayerElement_Minimal
    • UITests.Shared.Windows_UI_Xaml_Controls.MediaPlayerElement.MediaPlayerElement_Ogg_Extension
    • SamplesApp.Microsoft_UI_Xaml_Controls.WebView2Tests.WebView2_EnableDevTools
    • UITests.Uno_Web.Http.CookieManagerTests
    • UITests.Windows_UI_Xaml_Controls.CalendarView.CalendarView_Theming
    • UITests.Windows_UI_Xaml_Media_Animation.ColorAnimation_Background
    • Uno.UI.Samples.Content.UITests.WebView.WebView_AnchorNavigation

@unodevops

Copy link
Copy Markdown
Contributor

⚠️⚠️ The build 233998 has failed on Uno.UI - CI.

Copilot AI review requested due to automatic review settings September 17, 2026 07:21
@github-actions

github-actions Bot commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @MartinZikmund's task in 3m 9s —— View job


Review complete ✅

Todo list

  • Gather context (diff vs origin/master, changed files, AGENTS.md rules)
  • Review DependencyObject.Store.cs walker/enumerator (incl. new ec53d2f1 "Clear walker refs on early exit" fix)
  • Review DependencyObject.Theming.cs / ResourceResolver.cs call sites
  • Review new/updated runtime test in Given_Style.cs (incl. 089481fa PlatformCondition fix)
  • Cross-check morning4coffe-dev's P1 Android timeout finding against the fix commit
  • Post inline comments for any findings
  • Post summary

Verdict: Ship, pending CI screenshot confirmation

Inline findings: 0. I re-traced ResourceDictionaryWalker (DependencyObject.Store.cs:1593-1680) against the prior review threads and both are resolved by the two follow-up commits:

  • morning4coffe-dev's P1 (self-enumerating struct holding stale _candidate/_advanceFrom/_current references past an early exit, blamed for the Android shard timeout) is fixed in ec53d2f1: the struct now implements IDisposable, Dispose() nulls all four reference-typed fields, and every one of the four consumers (GetResourceDictionaries's compatibility wrapper, GetImplicitStyle, DependencyObject.Theming.cs's Phase A walk, ResourceResolver.TryVisualTreeRetrieval) reaches the walker only through foreach, so the compiler emits the try/finally that invokes Dispose() on break/return without boxing the struct.
  • Copilot's two test-metadata suggestions are addressed in 089481fa: [GitHubWorkItem(".../issues/24522")] is present and the Android skip is now [PlatformCondition(ConditionMode.Exclude, RuntimeTestPlatforms.NativeAndroid | RuntimeTestPlatforms.SkiaAndroid)] instead of #if __ANDROID__ + [Ignore], matching .claude/rules/runtime-tests.md.
  • Copilot's third suggestion (add Android-compatible coverage for the same ordering assertion rather than excluding it) remains open — non-blocking, and consistent with the pre-existing When_ImplicitStyle Android skip it mirrors.

The walker itself is a faithful, allocation-free translation of the original iterator: containingDictionary first, deferred fe.Parent read (still after the consumer's loop body, preserving the re-parent-during-TryMaterializeLazy safety noted in the PR description), then app resources exactly once. Call-site arguments are unchanged from the removed GetResourceDictionaries(...) calls, and the two .ToArray() callers in UpdateResourceBindings are untouched.

Cross-cutting concern (not an inline finding)

CI build 233998 failed, and the screenshot-diff comment reports 2,310 of 2,408 skia-windows-screenshots changed (~96%), versus only 57/2,348 on Linux and 11/1,076 on WASM. For a change described as allocation-only with unchanged visit order, a diff footprint that large and that Windows-specific is worth confirming before merge — either it's a baseline/runner artifact unrelated to this code (the Linux/WASM numbers, which exercise the same shared Skia code path, argue for this), or it's evidence of an actual resolution-order regression that the Windows comparison happens to be more sensitive to. Given implicit-style and {ThemeResource} lookups run through this walker for nearly every control, I'd want that ratio explained (or the Windows screenshot run re-baselined/re-verified) rather than assumed benign, per the checked-but-unconfirmed "Validated PR Screenshots Compare Test Run results" box in the PR checklist.

@MartinZikmund

Copy link
Copy Markdown
Member Author

Addressed the review feedback in ec53d2f1b0 and 089481fa9d. Summary of each item:

Copilot review items

1. Missing GitHubWorkItem metadata — fixed. When_ImplicitStyle_Nearest_Scope_Wins now carries [GitHubWorkItem("https://github.com/unoplatform/uno/issues/24522")], matching the When_ImplicitStyle test directly above it.

2. #if around the platform skip — fixed. Replaced with [PlatformCondition(ConditionMode.Exclude, RuntimeTestPlatforms.NativeAndroid | RuntimeTestPlatforms.SkiaAndroid)]. RuntimeTestPlatforms has no combined Android alias, so both flags together are what reproduces the previous __ANDROID__ guard regardless of which renderer the leg uses.

Changing a platform gate can silently stop a test running rather than skip it visibly, so I checked that specifically rather than trusting a green count: on Skia Desktop the class reports 4/4 with When_ImplicitStyle_Nearest_Scope_Wins → Passed (not Skipped, not absent), both before and after the change.

3. No Android coverage for the nearest-scope ordering — not addressed in code, deliberately. The skip mirrors the pre-existing one on When_ImplicitStyle immediately above it: ContentControl implicit styles do not pass on Android CI, which predates this PR. Removing the skip would add a known-failing test rather than coverage. If Android coverage for the ordering is wanted, the right shape is a separate test using a target type whose implicit style does pass there — I would rather not guess which one blind, since I cannot run the Android leg locally. Happy to add it if someone can point at a type that works.

Screenshot differences

The skia-windows-screenshots: 2310 figure is not from this change. The same three counts appear on every PR from that window:

PR build skia-linux skia-windows wasm
#24523 (this one) 233998 57 2310 11
#24525 233999 57 2310 11
#24529 234033 57 2310 11
#24519 (merged) 233976 57 2310 11

Identical on four independent PRs including one already merged, so it is a baseline artifact on the Windows leg rather than anything a PR did. The asymmetry points the same way: a resource-ordering regression would move both Skia legs alike, not 2310 of 2408 on Windows while Linux moves 57 of 2348.

Android runtime shard

Covered in the inline thread, but noting it here since it is the one open item: the ADO timeline shows Tests - Android Skia completed on attempt 3 for this build, so the currently green check is a third-attempt pass. ec53d2f1b0 addresses the retention mechanism, but I have not been able to reproduce the Android symptom locally and am not claiming it fixed — a rerun of that shard against this head is the thing that would tell us.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No blocking issues were identified.

Review details
  • Files reviewed: 4/4 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

@unodevops

Copy link
Copy Markdown
Contributor

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 234206 found UI Test snapshots differences: skia-linux-screenshots: 57, skia-windows-screenshots: 2310, wasm: 11

Details
  • skia-linux-screenshots: 57 changed over 2348

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • ClipboardTests.png-dark
    • ButtonClippingTestsControl.png-dark
    • ButtonClippingTestsControl.png
    • ContextRequested.png-dark
    • ContextRequested.png
    • Buttons.png-dark
    • Buttons.png
    • CalendarView_Theming.png-dark
    • CalendarView_Theming.png
    • DisplayInformation.png-dark
    • Examples.png-dark
    • Examples.png
    • ExpanderColorValidationPage.png-dark
    • ExpanderColorValidationPage.png
    • DropDownButtonPage.png-dark
    • DropDownButtonPage.png
    • Gamepad_CurrentReading.png-dark
    • Gamepad_CurrentReading.png
    • Gamepad_Enumeration.png-dark
    • Gamepad_Enumeration.png
  • skia-windows-screenshots: 2310 changed over 2408

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • AnimatedIconPage.png
    • AppBarButtonWithIconTest.png
    • AppWindowClosing.png-dark
    • AppWindowPositionAndSize.png-dark
    • Arrange_Performance01.png-dark
    • Attributed_text_Simple.png
    • AutoBorderStretchwithleftmargin.png
    • AutomationPropertiesExtensions_Role.png
    • AutoSizedTopLeft.png-dark
    • AutoSizedTopLeft.png
    • BackGesture.png-dark
    • BackGesture.png
    • Basics Pivot Test.png-dark
    • Basics Pivot Test.png
    • Battery.png-dark
    • Battery.png
    • BindableDrawerLayout_ChangePane.png-dark
    • BindableDrawerLayout_ChangePane.png
    • BitmapImage_vs_SvgImageSource.png-dark
    • BitmapImage_vs_SvgImageSource.png
  • wasm: 11 changed over 1076

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • SamplesApp.Wasm.Windows_UI_Xaml_Controls.ListView.ListView_IsSelected
    • UITests.Shared.Microsoft_UI_Xaml_Controls.ExpanderTests.WinUIExpanderPage
    • UITests.Microsoft_UI_Xaml_Controls.WebView2Tests.WebView2_NavigationProperties
    • SamplesApp.Windows_UI_Xaml_Controls.ListView.ListViewSelectedItems
    • UITests.Shared.Windows_UI_Xaml_Controls.MediaPlayerElement.MediaPlayerElement_Minimal
    • UITests.Shared.Windows_UI_Xaml_Controls.MediaPlayerElement.MediaPlayerElement_Ogg_Extension
    • SamplesApp.Microsoft_UI_Xaml_Controls.WebView2Tests.WebView2_EnableDevTools
    • UITests.Uno_Web.Http.CookieManagerTests
    • UITests.Windows_UI_Xaml_Controls.CalendarView.CalendarView_Theming
    • UITests.Windows_UI_Xaml_Media_Animation.ColorAnimation_Background
    • Uno.UI.Samples.Content.UITests.WebView.WebView_AnchorNavigation

@unodevops

Copy link
Copy Markdown
Contributor

⚠️⚠️ The build 234206 has failed on Uno.UI - CI.

Copilot AI review requested due to automatic review settings September 18, 2026 07:47
@MartinZikmund
MartinZikmund force-pushed the dev/mazi/perf-resource-dictionaries branch from 089481f to d49c585 Compare September 18, 2026 07:47
@github-actions

github-actions Bot commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @MartinZikmund's task in 2m 32s —— View job


Review complete ✅

Todo list

  • Gather context (diff vs origin/master, changed files, AGENTS.md rules)
  • Re-check outstanding P1 (Android walker retention) against current HEAD
  • Review DependencyObject.Store.cs walker/enumerator
  • Review DependencyObject.Theming.cs / ResourceResolver.cs call sites
  • Review Given_Style.cs test changes
  • Post inline comments for any new findings
  • Post summary

Verdict: Fix-first — one unresolved P1 blocks merge

No new inline comments. I re-traced ResourceDictionaryWalker (DependencyObject.Store.cs:1566-1667) against the diff at current HEAD (d49c5857, unchanged since the 089481fa head already reviewed) and found nothing beyond what's already on the two open review threads. Summary of where those stand:

  • morning4coffe-dev's P1 (Android walker retention) is still open, not resolved. Two fix attempts have landed — ec53d2f1 added IDisposable/field-clearing, d49c5857 is test-only — and per the thread's last update (2026-09-17 08:40, against 089481fa9d9f which matches this HEAD), the Android timeout still reproduces, now across three shards hitting the full 45-minute limit rather than the original single-shard slowdown. That shift in failure shape (isolated slow tests → whole-shard timeouts, inconsistent across shards) is worth flagging on its own: it's harder to attribute deterministically to the walker's field retention than the original report was, and may point at a different mechanism than "stale references kept alive past the loop" — e.g. something specific to how Mono/Android handles the struct-implements-IDisposable-via-foreach shape, or CI infra flakiness unrelated to this diff. Given two targeted fixes haven't closed it, I'd weight the "retain the iterator path on Android" fallback (already proposed in-thread) higher than a third attempt at disposal-based cleanup, unless there's a profiler trace from the Android shard itself to confirm the mechanism before trying again.
  • Copilot's two actionable items are resolved: [GitHubWorkItem] metadata is present, and the platform skip uses [PlatformCondition(ConditionMode.Exclude, RuntimeTestPlatforms.NativeAndroid | RuntimeTestPlatforms.SkiaAndroid)] per .claude/rules/runtime-tests.md rather than #if/[Ignore].
  • Copilot's third item (add Android-covering test for the ordering assertion) remains open by design, mirroring the pre-existing When_ImplicitStyle Android skip for the same underlying ContentControl limitation — non-blocking.

Everything else checks out: the walker is a faithful, allocation-free translation of the removed iterator (containing dictionary → deferred fe.Parent read after the consumer's loop body → app resources once), all three hot call sites pass the same arguments the removed GetResourceDictionaries(...) calls did, the two .ToArray() callers are untouched, and the new When_ImplicitStyle_Nearest_Scope_Wins test asserts the one thing the pre-existing single-level tests can't catch. No SOLID/async/cross-platform-suffix/DependencyProperty/event-type/commit-format issues.

Screenshot diffs: the skia-windows-screenshots: 2310/2408 figure was already shown (by the author, comparing four independent builds including an already-merged PR) to be a pre-existing baseline artifact unrelated to this change — not a regression from this diff.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Shared theming and resource-resolution traversal changes warrant final human validation.

Review details
  • Files reviewed: 4/4 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

@unodevops

Copy link
Copy Markdown
Contributor

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 234481 found UI Test snapshots differences: skia-linux-screenshots: 57, skia-windows-screenshots: 2310, wasm: 11

Details
  • skia-linux-screenshots: 57 changed over 2348

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • ClipboardTests.png-dark
    • ButtonClippingTestsControl.png-dark
    • ButtonClippingTestsControl.png
    • Buttons.png-dark
    • Buttons.png
    • CalendarView_Theming.png-dark
    • CalendarView_Theming.png
    • DisplayInformation.png-dark
    • ContextRequested.png-dark
    • ContextRequested.png
    • Examples.png-dark
    • Examples.png
    • ExpanderColorValidationPage.png-dark
    • ExpanderColorValidationPage.png
    • ImageIconPage.png-dark
    • DropDownButtonPage.png-dark
    • DropDownButtonPage.png
    • Focus_FocusVisual_Properties.png-dark
    • Gamepad_CurrentReading.png-dark
    • Gamepad_CurrentReading.png
  • skia-windows-screenshots: 2310 changed over 2408

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • Accessibility_ScreenReader.png
    • AppBarButtonTest.png-dark
    • AppBar_KeyBoard.png
    • ApplicationViewSpanningRectsPage.png
    • AppXamlDefinedResources.png
    • Attributed_text_Simple.png
    • AutoBorderStretchwithbottommargin.png
    • AutomationProperties_AutomationId.png-dark
    • AutoSizedTopLeft.png
    • AutoSuggestBoxChosenSuggestion.png-dark
    • BackGesture.png
    • BadgeNotificationTests.png-dark
    • Basics.png-dark
    • Basics.png
    • BenchmarkDotNet.png-dark
    • BenchmarkDotNet.png
    • BitmapIcon_Generic.png
    • BitmapIcon_Monochromatic.png-dark
    • BitmapImage_vs_SvgImageSource.png
    • BorderBottomwithmargins.png-dark
  • wasm: 11 changed over 1076

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • SamplesApp.Microsoft_UI_Xaml_Controls.WebView2Tests.WebView2_EnableDevTools
    • UITests.Microsoft_UI_Xaml_Controls.WebView2Tests.WebView2_NavigationProperties
    • UITests.Shared.Microsoft_UI_Xaml_Controls.ExpanderTests.WinUIExpanderPage
    • SamplesApp.Windows_UI_Xaml_Controls.ListView.ListViewSelectedItems
    • UITests.Shared.Windows_UI_Xaml_Controls.MediaPlayerElement.MediaPlayerElement_Minimal
    • UITests.Shared.Windows_UI_Xaml_Controls.MediaPlayerElement.MediaPlayerElement_Ogg_Extension
    • SamplesApp.Wasm.Windows_UI_Xaml_Controls.ListView.ListView_IsSelected
    • UITests.Uno_Web.Http.CookieManagerTests
    • UITests.Windows_UI_Xaml_Controls.CalendarView.CalendarView_Theming
    • UITests.Windows_UI_Xaml_Media_Animation.ColorAnimation_Background
    • Uno.UI.Samples.Content.UITests.WebView.WebView_AnchorNavigation

@unodevops

Copy link
Copy Markdown
Contributor

⚠️⚠️ The build 234481 has failed on Uno.UI - CI.

@MartinZikmund
MartinZikmund force-pushed the dev/mazi/perf-resource-dictionaries branch from d49c585 to 002cf9c Compare October 3, 2026 08:46
Copilot AI lite review requested due to automatic review settings October 3, 2026 08:46
@github-actions

github-actions Bot commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @MartinZikmund's task in 1m 9s —— View job


Review complete ✅

Todo list

  • Gather context (diff vs origin/master, current HEAD state)
  • Re-check outstanding P1 (Android walker retention) against latest HEAD
  • Review DependencyObject.Store.cs walker/enumerator
  • Review DependencyObject.Theming.cs / ResourceResolver.cs call sites
  • Review Given_Style.cs test changes
  • Post inline comments for any new findings
  • Post summary

Verdict: No new findings — the outstanding P1 from the prior round is still the blocker

This trigger fired on a branch update, but git diff origin/master...HEAD is byte-identical in content to what was already reviewed three times: the same three commits (3364eff8 perf, 16a036ae fix, 002cf9c2 test), unchanged since 2026-09-17. What moved is the merge-base — origin/master now sits at a 2026-10-03 merge (#24821) that landed well after this branch's last commit — so this looks like a rebase/merge-base refresh rather than new PR content. I re-traced all four changed files end-to-end against that diff and found nothing beyond the two issues already on open threads.

No new inline comments posted. Status of the two open threads, unchanged from the last review round:

  • morning4coffe-dev's P1 (Android walker retention) is still open. The last data point on that thread (2026-09-17 08:40, against the IDisposable-cleanup fix in 16a036ae) reported the Android timeout still reproducing, now as whole-shard 45-minute timeouts on 3 of 5 shards rather than the original isolated slow tests. No further commits have landed since to address it (the only commit after that is the test-metadata-only 002cf9c2), and I have no way to confirm via the tools available here whether a subsequent Azure DevOps run resolved or re-confirmed it — the last unodevops status in this PR's thread (build 234481, 2026-09-18) still reports a failed Uno.UI - CI build. Until a rerun of the Android shards against current HEAD is confirmed clean, I'd treat this the same as the last round: fix-first, not ship.
  • Copilot's two actionable items remain resolved ([GitHubWorkItem] present, [PlatformCondition(ConditionMode.Exclude, RuntimeTestPlatforms.NativeAndroid | RuntimeTestPlatforms.SkiaAndroid)] in place of #if), and the third (no Android-covering test for the ordering assertion) remains open by design, mirroring the pre-existing When_ImplicitStyle Android skip.

Everything else continues to check out: ResourceDictionaryWalker is a faithful, allocation-free translation of the removed iterator (containing dictionary → deferred fe.Parent read after the consumer's loop body → app resources once, exactly once), all three hot call sites (UpdateThemeReference Phase A, GetImplicitStyle, ResourceResolver.TryVisualTreeRetrieval) pass the same arguments the removed GetResourceDictionaries(...) calls did, the two .ToArray() callers in UpdateResourceBindings are untouched, and When_ImplicitStyle_Nearest_Scope_Wins asserts the one thing the pre-existing single-level implicit-style tests can't catch. No SOLID/async/cross-platform-suffix/DependencyProperty/event-type/commit-format issues.
(branch: dev/mazi/perf-resource-dictionaries)

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🔵 Needs a closer look

Restore any pre-existing application resource value in the new test to avoid order-dependent failures.

Review effort: Lite
Findings: None

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 237161 found UI Test snapshots differences: skia-linux-screenshots: 119, skia-windows-screenshots: 138

Details
  • skia-linux-screenshots: 119 changed over 2454

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • Buttons.png-dark
    • Buttons.png
    • ButtonClippingTestsControl.png-dark
    • ButtonClippingTestsControl.png
    • CalendarView_Theming.png-dark
    • CompositionEffectBrush.png-dark
    • CompositionEffectBrush.png
    • DisplayInformation.png-dark
    • ExpanderColorValidationPage.png-dark
    • ExpanderColorValidationPage.png
    • Gamepad_CurrentReading.png-dark
    • Gamepad_Enumeration.png-dark
    • Examples.png
    • ElementLevelTheme.png-dark
    • ElementLevelTheme.png
    • DynamicFont.png-dark
    • DynamicFont.png
    • Focus_FocusVisual_Properties.png-dark
    • ListViewHeaderUpdate.png-dark
    • Image_AnimatedWebP.png-dark
  • skia-windows-screenshots: 138 changed over 2454

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • ButtonClippingTestsControl.png-dark
    • ButtonClippingTestsControl.png
    • Buttons.png-dark
    • ClipboardTests.png-dark
    • ClipboardTests.png
    • CalendarView_Theming.png-dark
    • DisplayInformation.png-dark
    • ElementLevelTheme.png-dark
    • ElementLevelTheme.png
    • DoubleImageBrushInList.png-dark
    • DoubleImageBrushInList.png
    • Gamepad_CurrentReading.png-dark
    • Gamepad_Enumeration.png-dark
    • Grid_left_column_Auto.png-dark
    • Grid_left_column_Auto.png
    • Grid_Margin_And_Padding.png-dark
    • Grid_Margin_And_Padding.png
    • Grid_middle_col_auto__bottom_row_auto.png-dark
    • Grid_middle_col_auto__bottom_row_auto.png
    • Grid_MinWidth_MaxWidth.png-dark

@morning4coffe-dev morning4coffe-dev left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-review at head 002cf9c (rebased onto master 3bcf00c). Code review only; nothing was built or run here.

What changed since 089481f: the three new commits repeat the earlier commits (same messages and changed lines). The rebase applied cleanly, and the test moved to src/Uno.UI.RuntimeTests/Microsoft/UI/Xaml/Given_Style.cs.

Blocking:

  1. Given_Style.cs:97 uses RuntimeTestPlatforms.NativeAndroid, which does not exist on master (the enum has NativeWinUI and the Skia values). This should fail with CS0117 and break Uno.UI.RuntimeTests, consistent with the failing Skia Runtime Tests build check on this head. Please confirm against the build log.
  2. The Android walker regression is still open. The IDisposable change was in 089481f, where the Android shard timeouts still reproduced, and nothing in this head changes the walker. Please post Android shard results for 002cf9c showing the timeouts are gone.
  3. The Android skip on the new test removes the only Android coverage of nearest-scope ordering. The comment "as for When_ImplicitStyle above" is stale, since master no longer skips that test on Android. Drop the skip, or verify on Android and update the comment. The GitHubWorkItem links to #24522 (the performance issue), not the CI failure. Please link the Skia Desktop run the commit message refers to.

Non-blocking:

  • The walker keeps the removed iterator's visit order.
  • WinUI's implicit-style lookup also goes nearest-first and ends with app resources. WinUI also stops at the templated parent for non-controls; Uno's walker does not. That divergence predates this PR.
  • The retention mechanism behind the Dispose change has not been shown with a profile.

@MartinZikmund MartinZikmund added the 7.0 PRs only. For issues, use the Release field. label Oct 14, 2026
MartinZikmund and others added 4 commits October 27, 2026 12:34
GetResourceDictionaries is a C# iterator, so every call allocates a state
machine before producing a dictionary — including the common case where no
ancestor carries resources and the walk yields nothing. It runs once per theme
reference (an object with N refs performs N separate ancestor walks), twice per
element Enter for the implicit-style lookup, and on every visual-tree resource
retrieval.

Add EnumerateResourceDictionaries, a struct enumerator that performs that walk
without allocating, and use it from those three lookups. The iterator stays for
the two callers that materialise an array, but now delegates to the walker, so
the visit order — containing dictionary, each ancestor's non-empty Resources,
then the application resources — lives in one place.

The walker reads the parent link only once the consumer's body has run, as the
iterator did: TryGetValue can materialise a lazy resource, which runs generated
XAML initialization from inside the loop and could re-parent the element being
walked.

When_ImplicitStyle_Nearest_Scope_Wins pins the order. The existing implicit-style
tests define each key at a single level, so they pass even when the walk visits
the application resources first.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_012QzKQawubFcPPX9JSoZLkX
ResourceDictionaryWalker is a struct enumerator, and every call site stops at
the first match, so the consuming foreach leaves the loop early. Without a
Dispose the enumerator's stack slot keeps the ancestor and the dictionary it
stopped on rooted past the loop; that retention is reported to slow Android
runtime shards badly, where stack scanning is conservative.

Implement IDisposable and null the four reference fields. For a struct
enumerator implementing IDisposable, foreach emits a constrained call from a
finally, so cleanup is guaranteed on every exit path and nothing is boxed.
Checked against both early-exit shapes - break, and return from inside the loop
body, which is what GetImplicitStyle does: Dispose runs exactly once, and the
enumerator was still holding a live reference at that point.

It cannot become a ref struct: GetResourceDictionaries still walks it with
foreach from inside an iterator method.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_012QzKQawubFcPPX9JSoZLkX
Platform selection belongs in attributes rather than a #if, so discovery and
filtering stay consistent across targets, and an issue-covering runtime test
carries GitHubWorkItem metadata.

The skip set is unchanged: NativeAndroid and SkiaAndroid together match the
previous __ANDROID__ guard, since the enum has no combined Android alias.
Verified the test still runs and passes on Skia Desktop rather than becoming
silently skipped.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_012QzKQawubFcPPX9JSoZLkX
@ajpinedam
ajpinedam force-pushed the dev/mazi/perf-resource-dictionaries branch from 002cf9c to 3ef368d Compare October 27, 2026 16:55
@github-actions

github-actions Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @ajpinedam's task in 16s —— View job


Re-review at 3ef368db

Verdict: no new findings. Open item: Android shard evidence. This was a code read only. I built and ran nothing.

  • Checked morning4coffe-dev's 2026-10-12 blocking items against the current head
  • Re-read Given_Style.When_ImplicitStyle_Nearest_Scope_Wins

Resolved at this head

  • RuntimeTestPlatforms.NativeAndroid (CS0117): the enum on this branch has no such member, but nothing references it either. grep NativeAndroid src/Uno.UI.RuntimeTests finds no matches. This should clear the Skia Runtime Tests build failure, but I couldn't confirm it against a CI run.
  • Android skip on the new test: 3ef368db removes it, so nearest-scope ordering is now covered on Android. That also fixes the stale "as for When_ImplicitStyle" comment.

Still open

  • Android walker timeouts. Nothing in the walker has changed since IDisposable was added, and that change did not stop the shard timeouts. The Android shard results for this head are still needed. If they still time out, I'd fall back to the iterator path on Android rather than make another cleanup attempt.
  • Removing the Android skip is untested. The old skip existed because ContentControl implicit styles did not pass in CI on Android. Master no longer skips When_ImplicitStyle, so it may be fine, but the Android shards need to run this test to show it passes.
  • Minor, non-blocking: the test does Application.Current.Resources.Add(typeof(ContentControl), …) and then Remove in finally. If another test leaves that key behind, Add throws. If the key is already there, Remove also deletes the earlier value. Saving and restoring any existing entry would avoid both. This is the point Copilot raised.
  • GitHubWorkItem links the perf issue Resource dictionary lookups allocate an iterator on every walk #24522. morning4coffe-dev's comment asked for the CI run to be linked too. Optional.
    · branch dev/mazi/perf-resource-dictionaries

@ajpinedam

Copy link
Copy Markdown
Contributor

Re-review at head 002cf9c (rebased onto master 3bcf00c). Code review only; nothing was built or run here.

What changed since 089481f: the three new commits repeat the earlier commits (same messages and changed lines). The rebase applied cleanly, and the test moved to src/Uno.UI.RuntimeTests/Microsoft/UI/Xaml/Given_Style.cs.

Blocking:

  1. Given_Style.cs:97 uses RuntimeTestPlatforms.NativeAndroid, which does not exist on master (the enum has NativeWinUI and the Skia values). This should fail with CS0117 and break Uno.UI.RuntimeTests, consistent with the failing Skia Runtime Tests build check on this head. Please confirm against the build log.
  2. The Android walker regression is still open. The IDisposable change was in 089481f, where the Android shard timeouts still reproduced, and nothing in this head changes the walker. Please post Android shard results for 002cf9c showing the timeouts are gone.
  3. The Android skip on the new test removes the only Android coverage of nearest-scope ordering. The comment "as for When_ImplicitStyle above" is stale, since master no longer skips that test on Android. Drop the skip, or verify on Android and update the comment. The GitHubWorkItem links to Resource dictionary lookups allocate an iterator on every walk #24522 (the performance issue), not the CI failure. Please link the Skia Desktop run the commit message refers to.

Non-blocking:

  • The walker keeps the removed iterator's visit order.
  • WinUI's implicit-style lookup also goes nearest-first and ends with app resources. WinUI also stops at the templated parent for non-controls; Uno's walker does not. That divergence predates this PR.
  • The retention mechanism behind the Dispose change has not been shown with a profile.

Thanks. I rebased onto master 797cf2ea7a and pushed 3ef368db83.

1. NativeAndroid / CS0117. Confirmed: build 237161 fails at Given_Style.cs(97,66). NativeAndroid was removed in 34731cd, which came in with the earlier rebase. Fixed by removing the PlatformCondition entirely (see 3).

2. Android timeouts. Agreed, this is still open. Nothing on 002cf9c2e1 could answer it: the compile error failed every "Build Samples App" job, so no Android shard ran. The September builds have aged out of ADO, so I can't look at those timings again. Current master is a clean baseline: on build 241560, all Android Skia shards passed on the first attempt in 9–11 min. This push gives the first comparable run, and I'll post the shard timings when it finishes. If the shards still time out, the next step is your explicit while (MoveNext()) walker (or the iterator on Android), with a trace from the shard this time rather than another guess. I also agree the Dispose change was never backed by a profile, and your data says it didn't help.

3. Android skip. Agreed, and the original skip never applied. Uno.UI.RuntimeTests only builds for Skia and WinUI, and neither defines __ANDROID__, so the original #if __ANDROID__ [Ignore] never took effect and the test already ran on Skia Android. The PlatformCondition newly excluded it. I removed it, so the test runs on Android again, which also covers nearest-scope ordering on the leg in question. I also corrected the commit message that claimed the skip set was unchanged.

On GitHubWorkItem: I kept it on #24522. The attribute names the issue the test guards, and this test pins the lookup order that the #24522 change has to keep. There's no separate CI-failure issue to link. I can't link the earlier local run either, so here is a fresh local one on the rebased head (Skia Desktop Win32, Release): 39/39 passed across Given_Style (4, with the new test running, not skipped), Given_ResourceDictionary (11), Given_ThemeResource (17), Given_ResourceResolver (4) and Given_StaticResource_UITest (3).

@unodevops

Copy link
Copy Markdown
Contributor

🤖 Your WebAssembly Sample App stage site is ready! Visit it here:

@ajpinedam
ajpinedam enabled auto-merge October 27, 2026 17:53
@nventive-devops

Copy link
Copy Markdown
Contributor

The build 241705 found UI Test snapshots differences: skia-linux-screenshots: 118, skia-windows-screenshots: 2458

Details
  • skia-linux-screenshots: 118 changed over 2458

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • ClipboardTests.png-dark
    • ButtonClippingTestsControl.png-dark
    • ButtonClippingTestsControl.png
    • Buttons.png-dark
    • Buttons.png
    • CalendarView_Theming.png-dark
    • CalendarView_Theming.png
    • CompositionEffectBrush.png-dark
    • CompositionEffectBrush.png
    • CompositionNineGridBrush_Source_Changes.png-dark
    • CompositionNineGridBrush_Source_Changes.png
    • Gamepad_CurrentReading.png-dark
    • Gamepad_Enumeration.png-dark
    • Focus_FocusVisual_Properties.png-dark
    • Focus_FocusVisual_Properties.png
    • DisplayInformation.png-dark
    • ElementLevelTheme.png-dark
    • ElementLevelTheme.png
    • ImageBrushAlignmentXY.png-dark
    • ImageBrushAlignmentXY.png
  • skia-windows-screenshots: 2458 changed over 2492

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • AnimatedBackVisualSourceSamplePage.png
    • AppBarToggleButtonTest.png-dark
    • ApplicationViewSpanningRectsPage.png-dark
    • AppWindowFeatures.png
    • AppXamlDefinedResources.png-dark
    • Attributed_text_Supserscript.png
    • AutoBorderStretchwithleftmargin.png-dark
    • AutoBorderStretchwithtopmargin.png-dark
    • AutomationProperties_Name.png
    • AutomationProperties_Relations.png-dark
    • AutoSuggestBoxChosenSuggestion.png-dark
    • AutoSuggestBoxChosenSuggestion.png
    • BackGesture.png-dark
    • BackGesture.png
    • Basics Pivot Test.png-dark
    • Basics Pivot Test.png
    • Battery.png-dark
    • Battery.png
    • BezierSegment.png-dark
    • BezierSegment.png

@mergify

mergify Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

This pull request does not currently match the merge queue conditions, so it cannot be queued from here. The box comes back if it matches again.

@ajpinedam
ajpinedam merged commit 33bbc01 into master Oct 27, 2026
51 checks passed
@ajpinedam
ajpinedam deleted the dev/mazi/perf-resource-dictionaries branch October 27, 2026 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

7.0 PRs only. For issues, use the Release field.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Resource dictionary lookups allocate an iterator on every walk

6 participants