SShortSingh.
Back to feed

Moving a Spreadsheet Engine Off the Main Thread to Fix 100,000-Row Sort Stalls

0
·4 views

A client-side update enabling multi-column sorting and automatic snapshot persistence in a collaborative spreadsheet and dependency-graph editor performed well on small CI fixtures but failed with enterprise customers' 100,000-row workbooks. Sorting blocked the browser's main thread for hundreds of milliseconds, causing dropped input and frame rates near 4 FPS. An initial fix that chunked the sort into idle callbacks did not resolve contention over shared memory, blocking serialization, and inconsistent intermediate state. The engineering team instead moved the data engine into Web Workers, used zero-copy transfers and OPFS-based binary snapshots, and ran sorting through batched WebAssembly calls. The architecture keeps the UI thread responsive at 60 FPS during dataset mutations.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingHacker News ·

Apple's iCloud, App Store and other services hit by ongoing outage

Several Apple services, including iCloud and the App Store, are currently experiencing an ongoing outage. The disruption was reported in a 9to5Mac article published on November 17, 2026. The source material available does not specify the cause of the outage or its expected duration. Users affected by the disruption are awaiting further updates from Apple. The story gained traction on Hacker News, where it drew modest attention from readers.

0
ProgrammingHacker News ·

Apple Services Experiencing Outage, Per Downdetector Reports

Reports on Downdetector indicate that Apple's services are currently experiencing an outage. The disruption was flagged on a Hacker News post linking to Downdetector's Apple support status page. The source material does not specify which services are affected, how many users are impacted, or the cause of the problem. The post drew 65 points and 21 comments from the Hacker News community. No official statement from Apple was included in the available information.

0
ProgrammingHacker News ·

OpenAI Introduces GPT-6.2 Astra and Sol Models

OpenAI has announced two new models, GPT-6.2 Astra and GPT-6.2 Sol, through a post on its website. The announcement was shared on Hacker News, where it drew around 100 points and 23 comments. The available source material contains only the headline, the link to OpenAI's announcement, and the discussion metrics, so details about capabilities, pricing, and availability cannot be confirmed from this item. Readers seeking specifics are directed to OpenAI's original post for the full information.

0
ProgrammingHacker News ·

Who Builds the Machines That Build the Machines? Examining Section 232 and US Machine Tools

A Hacker News post links to an article examining the US machine tool industry in the context of Section 232 trade measures. The piece appears to focus on who manufactures the machine tools that produce other machines. The item was shared on Hacker News, where it received 4 points and no comments at the time of listing. The provided text contains only the link and metadata, so the article's specific findings and arguments cannot be confirmed from this source.