Skip to content

Conversation

@KonaeAkira
Copy link
Owner

@KonaeAkira KonaeAkira commented Jan 2, 2026

Related issue: #292

This PR removes the state field of candidate nodes, reducing the size of candidate nodes from 28 bytes down to 8 bytes (on wasm32). This change is enough to make the example in the linked issue no longer hit OOM.

The downside is that the state will have to be recomputed before the candidate node can be processed, but this seems to only have minimal (<1%) impact on runtime performance.

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Jan 2, 2026

Deploying raphael-rs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 89e875a
Status: ✅  Deploy successful!
Preview URL: https://74c037b6.raphael-rs.pages.dev
Branch Preview URL: https://perf-reduce-candidate-node-s.raphael-rs.pages.dev

View logs

@KonaeAkira KonaeAkira marked this pull request as ready for review January 2, 2026 13:54
@KonaeAkira KonaeAkira merged commit b6a5b75 into preview Jan 2, 2026
4 checks passed
@KonaeAkira KonaeAkira deleted the perf/reduce-candidate-node-size branch January 2, 2026 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants