You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 98419a8
Browse filesBrowse the repository at this point in the historyBrowse files
`stroke` and `fill` each asked the memo twice — once for the rgb string
and once for the alpha — so a cache miss paid for two guarded lookups and
two full `parse` calls. With a distinct color per point nothing ever hits,
and that overhead showed up as a small regression against main.
Cache the pair instead, derived from a single `parse`, and leave the
exported `rgb` unmemoized so its many cold callers stop paying for the
wrapper. Colors that repeat still cost one lookup, and colors that don't
now parse once per point instead of twice.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
0 commit comments