[Perf/UX] Frontend: Polling-Backoff, Virtualisierung, Memo #24
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Probleme
a) Polling fest auf 800ms —
index.html:1238,1957Auch wenn Job lange laeuft. Kein Timeout (Frontend haengt forever bei Server-Crash).
b) Review-Liste rendert alle Fotos —
index.html:1313-1361Bei 500+ Bildern Jank/Memory-Druck.
c)
entry.path.split("/").pop()im Sort + Loop —index.html:1311-1314Wiederholtes Splitting pro Render.
Fix
nameeinmalig inallEntriesvorberechnenFix (a) und (b) umgesetzt in
index.html:(a) Polling-Backoff + Wall-Clock-Timeout
_pollDelayMs(elapsedMs): 300ms < 10s, 800ms < 30s, sonst 1500msPOLL_TIMEOUT_MS = 10 * 60 * 1000(10 min)(b)
nameeinmal vorberechnen_basename(p)vialastIndexOf("/")stattsplit("/").pop()allEntriesenthaelt jetztname-Felda.namedirekt, kein Splitting im hot Pathentry.namestatt erneut zu splitten(c) Virtualisierung der Review-Liste als separates Issue #30 ausgegliedert.