Skip to content

WebGPU-accelerated Stellar scanner (full implementation) #119

Description

@truthixify

Continues work from a Wave 6 issue that was closed at wave wrap-up. Fresh assignments welcome.

Extra labels: stellar, perf
Tier: L (5-7 days) | Type: perf

Context. Wave 6 spike (PR #118) measured ~5x further speedup on top of the current 229x view-tag baseline but was intentionally throwaway. Land it properly behind a runtime capability check.

Scope.

  • Move WebGPU shader from spike into src/chains/stellar/scanner/webgpu.ts.
  • Feature-detect via navigator.gpu; fall back to CPU wasm in Node + non-GPU browsers.
  • Public API unchanged (fetchAnnouncementsStream).
  • Extend test/chains/stellar/bench/scan.bench.ts with GPU vs CPU.

Acceptance.

  • Node CI green without WebGPU
  • Browser Playwright test verifies GPU path returns identical output to CPU
  • Bench shows ≥ 2x GPU speedup on 10k events in Chrome
  • @webgpu/types stays dev-only

Files. src/chains/stellar/scanner/webgpu.ts (new), src/chains/stellar/announcements.ts, test/chains/stellar/bench/scan.bench.ts.

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programdripsFunded via Drips Networkhelp wantedExtra attention is neededperfPerformance / optimizationstellarTouches Stellar / Soroban code

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions