Menu ▾ ▴

#112 Reduce the notification scanner's 1 Hz forced-layout poll

closed
nobody
2026-07-18
2026-07-17
Anonymous
No

Originally created by: kristofferR

scanUnreadConversations runs every second for the process lifetime — including hidden windows — and each tick does per-span getBoundingClientRect (twice) plus getComputedStyle().fontWeight for every visible row: a forced style/layout pass every second, forever. Every other feature throttles while hidden (unread badge and recent threads go to 60s; download-anchors disconnects). The MutationObserver already provides sub-second reactivity; the poll is only a safety net for missed mutations and could drop to 5–15s.

Related

Tickets: #135
Tickets: #137

Discussion

  • Anonymous

    Anonymous - 2026-07-18

    Originally posted by: kristofferR

    Fixed in [#137]. Scanning is mutation-driven and debounced; the safety poll now runs at 10s while visible / 60s while hidden instead of a 1 Hz forced-layout loop.

     

    Related

    Tickets: #137

  • Anonymous

    Anonymous - 2026-07-18

    Ticket changed by: kristofferR

    • status: open --> closed
     

Log in to post a comment.