Opening a list moves the feed list's highlight instead of redrawing it (#490)

Profiled on production's lists at an iPhone 13's size with the CPU slowed
4x, opening four lists twice: selectFeed rebuilt every feed row (about
300 ms of the run) only to move .sel and aria-current, and dateOf made a
new Intl.DateTimeFormat for every row through toLocaleDateString with
options (about 155 ms). With markSelected and one shared formatter the
run's CPU time fell from 2.3-2.5 s to 1.25-1.65 s; dateOf from 157 ms to
12 ms.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqkrVBuJRne2JAhFpaDV2U
This commit is contained in:
2026-11-22 11:26:09 -05:00
parent 33b595973a
commit f633f3d692
3 changed files with 14 additions and 2 deletions

View File

@@ -39,6 +39,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
- Opening a podcast or a list draws only the list: the feed list beside it is no longer rebuilt to move its highlight, and dates are written by one formatter rather than one a row, about 40% less work on a phone (#490).
- A report of a reader that would not scroll no longer comes from a quick flick that did scroll, and says when the reader was last swiped across, not that it was just now (#488).
- The headers of Currently Listening, Up Next, Playlists and Signals start where a podcast's does, rather than twice as far in and further down (#485).
- On a phone, a pinned item's pin in the reader's floating actions is on its accent disc again, rather than nearly invisible on a light theme (#480).