Skip to content

performance: Move API calls out of render and into subway_status - #3408

Draft
jlucytan wants to merge 4 commits into
mainfrom
jlt/perf/move-api-calls
Draft

performance: Move API calls out of render and into subway_status#3408
jlucytan wants to merge 4 commits into
mainfrom
jlt/perf/move-api-calls

Conversation

@jlucytan

@jlucytan jlucytan commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Scope

Asana Ticket: 📈 🛠️ [Subway Status] Move API calls / stop-loading out of component-rendering

Implementation

Moves affected_stops and endpoint_stops out of status_row_heading and into subway_status so there are fewer API calls at render time, and the data is cached.

Known issue: Planned Work doesn't correctly display subheading. Will need to add subheading_data to disruptions.ex

Screenshots

Should have no visual changes.

Old flamegraph:
flame-main-content-tag-blue

New flamegraph:
flame-branch-content-tag-blue

How to test

Homepage and alerts page appearance should not change between this branch and prod.

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