Skip to content

Avoid redundant agenda projection and tab update work - #31

Merged
jfversluis merged 3 commits into
mainfrom
simonrozsival-maui-performance-profiling
Nov 18, 2026
Merged

jfversluis merged 3 commits into
mainfrom
simonrozsival-maui-performance-profiling

Conversation

@simonrozsival

@simonrozsival simonrozsival commented Nov 5, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Stop rebuilding local-time agenda projections when an already loaded tab appears. Invalidate the timezone cache and refresh labels/day filters on resume, even when no agenda download is needed.
  • Skip speaker lookup and searchable-text construction for empty queries while preserving local-day/topic filtering and deterministic ordering.
  • Make unchanged collection reconciliation linear and retain day-tab controls when the rendered dates/labels have not changed.
  • Keep focused regression coverage for revisiting the loaded agenda and refreshing local times on resume. Existing Core tests cover search and collection behavior; CONTRIBUTING.md is unchanged.

Performance evidence

Release headless app-path benchmarks used the same downloaded public Microsoft feed (71 sessions, 72 speakers), with seven-round medians:

Measured path Before After
Cached document/ViewModel initialization 72.98 ms 0.99 ms
Revisiting an already loaded agenda (ViewModel only) 66.78 ms 0.20 µs
Unchanged collection reconciliation (71 items) 16.26 µs 0.90 µs
Empty-search allocations 132,552 B 3,992 B

Cached initialization excludes disk/network loading and native UI creation. These are not end-to-end startup measurements. A same-process control with tiered compilation disabled measured original versus optimized text search at 33.17 versus 32.77 µs; no meaningful text-search timing regression was observed.

Native iOS simulator Time Profiler captures covered startup and Home → Sessions → session details navigation. The selected day survived returning from details, and no sustained idle CPU loop appeared in the sampled flows. The before/after interactive flows were not identical workloads, so their total CPU samples are not used to claim a throughput improvement.

Validation

  • dotnet test tests/DotNetConf.Core.Tests -c Release: 652 passed after removing redundant tests.
  • dotnet test tests/DotNetConf.App.Tests -c Release -p:MobileTargetFramework=net11.0: 165 passed during implementation; App tests and production code are unchanged by the cleanup.
  • Release net11.0-ios / iossimulator-arm64 build succeeded during implementation, with existing warnings, using the SDK/workload versions pinned in global.json.
  • Native Release UI check confirmed day filtering and selected-day retention through session-detail navigation.
  • git diff --check passed.

Profiling limitations

dotnet tool run maui -- profile startup failed during the diagnostic handshake; Apple Time Profiler was used instead. Installed Xcode 27.2 required -p:ValidateXcodeVersion=false, which is not the pinned workload's supported Xcode pairing. Simulator CoreCLR behavior is not a production NativeAOT device measurement.

No end-to-end startup speedup, memory-leak fix, Android performance improvement, or long-session timeline/frame-time result is claimed. Physical-device Release NativeAOT startup and extended scrolling/allocation profiling remain follow-up work. Repository version pins and Release diagnostics exclusions are unchanged; raw traces and the benchmark harness are outside the repository in session artifacts.

simonrozsival and others added 3 commits November 17, 2026 14:14
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

@jfversluis jfversluis left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Reviewed with multiple models and validated at the stack top (#33 @ 33a052c): Core 1431/1431, App 314/314, Android/iOS Debug builds, and runtime checks on iOS simulator and Android emulator (collapse/reveal, resume, filters, animations off, toolbar order). Approving as part of the #31 → #32 → #33 stack.

@jfversluis
jfversluis merged commit 1bb731e into main Nov 18, 2026
3 checks passed
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.

2 participants