Menu

Autopsy #12: Moving the Entire App Engine Off the Main Thread
📰

Autopsy #12: Moving the Entire App Engine Off the Main Thread

DEV Community: frontend·frontend.rocks·about 9 hours ago
#KHlzsYgP
#devtofrontend#devto#dev#perf#thread
Reading 0:00
15s threshold

620 ms Stalls on Every Column Click

A client-side table PR enabled multi-column sorting and automatic snapshot persistence for a collaborative spreadsheet editor. On 200-row fixtures in CI, sorts finished in 2 ms.

When enterprise customers opened 100,000-row production workbooks, Long Task observers recorded 620 ms main-thread stalls per column click, dropping scroll input and collapsing frame rates to 4 FPS. Each sort ran Array.prototype.sort over 100,000 JS objects, then called JSON.stringify(rows) and IndexedDB put() , allocating 90 MB of transient strings and triggering 140 ms V8 major GC pauses.

T+00:00 : Enterprise customers open 100,000-row production workbooks after the release.

T+03:00 : Long Task observers record 620 ms main-thread stalls per column click, dropping frame rates to 4 FPS.

T+08:00 : Each sort runs Array.prototype.sort + JSON.stringify(rows) + IndexedDB put() , allocating 90 MB of transient strings.

T+12:00 : V8 major garbage collection pauses hit 140 ms on every sort direction…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.