Skip to content

routing: keep picked routes alive, one CH search, warm router - #39

Merged
Monstrofil merged 1 commit into
mainfrom
worktree-nav-search-routing-fixes
Oct 27, 2026
Merged

Monstrofil merged 1 commit into
mainfrom
worktree-nav-search-routing-fixes

Conversation

@Monstrofil

Copy link
Copy Markdown
Contributor

Fixes laggy / missing routes in destination search.

  • A recent picked on the Search screen (the driving-lock list) set the query to its title; the debounced search for it then cancelled the route on the single worker and the route was never published. No search once a destination is picked (NavigationModel::search_wanted), host test added.
  • CH seeds all start/end snap candidates into one bidirectional search (was up to 16 pair searches + a rerun) and honours route cancellation. Bench A/B on the unit: identical routes, search 725→623 ms cold (Kyiv→Dnipro), 100→33 ms short; whole-route time still dominated by road loading.
  • CH "both ends on one node" goes straight to A* (HH took 49 s for a long route over all of Ukraine); a cancelled route stops the fallback chain.
  • Routing maps (10.4 s to open for 26 Ukraine files) open on a background thread at priority 9 once the worker starts (place card / other screen / 30 s after start-up); worker at priority 10. On the bench unit the first route after boot took 387 ms.

Tested: make test (34/34), make (QNX, ELF checks), deployed to bench unit M9304002366 slot b and routed once from the UI.

Open: on one short Kyiv pair CH returns 2.55 km while HH and A* return 9.2 km; needs a separate look.

🤖 Generated with Claude Code

- A recent picked on the Search screen set the query to its title; the
  debounced search for it then cancelled the route on the one worker and
  the route was never published. No search once a destination is picked
  (NavigationModel::search_wanted).
- CH seeds every start/end snap candidate into one bidirectional search
  (was up to 16 pair searches plus a rerun over the paged sidecar) and
  checks the route's cancellation while it runs.
- Both ends on one CH node: A* directly instead of HH (49 s for a long
  route over all of Ukraine on the bench); a cancelled route stops the
  fallback chain.
- The routing maps (10 s to open for Ukraine) open on a background thread
  at priority 9 once the worker starts: when a place card or another
  screen opens, or 30 s after start-up. The worker itself runs at 10.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Monstrofil
Monstrofil merged commit 6b448f9 into main Oct 27, 2026
1 check passed
@Monstrofil
Monstrofil deleted the worktree-nav-search-routing-fixes branch October 27, 2026 13:43
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.

1 participant