Skip to content

feat: off-main-thread XDR serialization worker pool (#603) - #623

Merged
github-actions[bot] merged 1 commit into
Sahara-Pay:mainfrom
JamesEjembi:feat/off-main-thread-xdr-worker-pool
Aug 24, 2026
Merged

feat: off-main-thread XDR serialization worker pool (#603)#623
github-actions[bot] merged 1 commit into
Sahara-Pay:mainfrom
JamesEjembi:feat/off-main-thread-xdr-worker-pool

Conversation

@JamesEjembi

Copy link
Copy Markdown
Contributor

Summary: Implements a pre-initialized Web Worker pool for parallel XDR serialization to maintain 60FPS during complex Web3 state mutations.

Changes:

  • XdrWorkerPool: manages pool of workers for parallel XDR tasks
  • Work-stealing scheduler distributes tasks across idle workers
  • Zero-copy ArrayBuffer transfer for large XDR payloads
  • Automatic worker recycling after configurable task count
  • Graceful degradation to main-thread fallback

Closes #603

- XdrWorkerPool: pre-initialized worker pool for parallel XDR serialization
- Work-stealing scheduler distributes tasks across idle workers
- Zero-copy ArrayBuffer transfer for large XDR payloads
- Automatic worker recycling after configurable task count
- Graceful degradation to main-thread fallback
- serializeBatchXdr: high-level API with automatic pool management

Closes Sahara-Pay#603
@github-actions
github-actions Bot merged commit eac8ba3 into Sahara-Pay:main Aug 24, 2026
1 check passed
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.

Develop off-main-thread XDR serialization to maximize Next.js client performance

1 participant