perf: dedup shapes #99

Merged
maxtkc merged 2 commits from 27-fast-large-feeds into main 2026-05-03 23:44:00 +00:00
Owner

#27

#27
maxtkc self-assigned this 2026-05-03 23:43:53 +00:00
Replace O(trips) feature list with O(unique route×geometry pairs) Map.
Add shapeIndex, stopSeqIndex, tripsByGeomKey caches. Derive geometry_key
as 'shape:<shape_id>' or 'stops:<stop_ids joined>'. Each feature carries
trip_ids[] for all contributing trips. Add invalidateAll() to clear all
caches. Log dedupe ratio at render time.
Subscribe MapController to all patch events. Change events
dispatch surgical invalidation per affected GTFS table;
undo/redo/jump events trigger a hard reset. Route, trip,
shape, stop_times, and stop changes now update the map
incrementally via RAF-coalesced setData rather than a
full rebuild.
maxtkc merged commit 655a5b019d into main 2026-05-03 23:44:00 +00:00
maxtkc deleted branch 27-fast-large-feeds 2026-05-03 23:44:00 +00:00
Sign in to join this conversation.
No reviewers
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
gtfs.zone/coloring-book!99
No description provided.