Parallelize startup loads and trim map hover METAR candidates #21

Merged
brenno merged 2 commits from perf/list-aircraft-cache into main 2026-06-30 23:43:11 +00:00
Owner

Summary

  • Load daylight rules, airport websites, and METAR sources in parallel at startup via Future.wait.
  • Introduce nearbyAerodromeCandidates() (50 NM) and use it for map-hover weather fetches instead of scanning all aerodromes.

Test plan

  • flutter test (412 tests)
  • Cold start: confirm app reaches home screen without regressions
  • Pan map over dense regions: hover weather should still appear for nearby fields

Retargeted to main after #18 merged (#19 was merged into the stacked base branch by mistake).

## Summary - Load daylight rules, airport websites, and METAR sources in parallel at startup via `Future.wait`. - Introduce `nearbyAerodromeCandidates()` (50 NM) and use it for map-hover weather fetches instead of scanning all aerodromes. ## Test plan - [x] `flutter test` (412 tests) - [ ] Cold start: confirm app reaches home screen without regressions - [ ] Pan map over dense regions: hover weather should still appear for nearby fields Retargeted to `main` after #18 merged (#19 was merged into the stacked base branch by mistake).
Load bundled registries concurrently before runApp and pass only aerodromes within 50 NM to map-marker weather fetches.

Co-authored-by: Cursor <cursoragent@cursor.com>
brenno merged commit f5c3f0c078 into main 2026-06-30 23:43:11 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
brenno/Hiero!21
No description provided.