Skip to content

Move large JSON processing into a Web Worker#6

Merged
shubhamashish33 merged 1 commit into
mainfrom
worker-large-json-ux
May 16, 2026
Merged

Move large JSON processing into a Web Worker#6
shubhamashish33 merged 1 commit into
mainfrom
worker-large-json-ux

Conversation

@shubhamashish33

Copy link
Copy Markdown
Owner

Summary

  • Moves large JSON parsing, text indexing, search, and comparison into a Web Worker.
  • Adds progress/cancel state for long worker tasks and a timeout fallback so the editor does not stay blank if worker processing fails.
  • Keeps structured edit actions on the main thread while preserving undo/redo for supported small-document workflows.
  • Optimizes tree rendering so large objects do not need every key expanded just to render the first visible page.
  • Documents the worker-backed large JSON architecture in the README.

Verification

  • npm run build
  • npm test -- --watchAll=false src/jsonUtils.test.js

Notes

  • Worker processing improves responsiveness but does not remove browser memory limits for parsed JSON.
  • Undo/redo still avoids full snapshots for very large documents to prevent memory growth.

@vercel

vercel Bot commented May 16, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
json-comparator Ready Ready Preview, Comment May 16, 2026 6:54pm

@shubhamashish33 shubhamashish33 merged commit a8afda3 into main May 16, 2026
4 checks passed
@shubhamashish33 shubhamashish33 deleted the worker-large-json-ux branch May 16, 2026 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant