Skip to content

Streamline curve linear wasm hot path#86

Open
ShanonJackson wants to merge 9 commits intomainfrom
feat/implement-curveutils.linear-in-rust
Open

Streamline curve linear wasm hot path#86
ShanonJackson wants to merge 9 commits intomainfrom
feat/implement-curveutils.linear-in-rust

Conversation

@ShanonJackson
Copy link
Copy Markdown
Owner

Summary

  • pre-encode curve deltas into a Uint32Array for the wasm encoder to avoid JS string building work
  • rewrite the Rust formatter to consume scaled integers directly with a digit lookup table for faster output generation
  • streamline the JS delta packing and wasm writer to drop redundant rounding/division work and branch checks, pushing the wasm hot path further past the JS fallback

Testing

  • bun test src/utils/path/curve.spec.ts
  • CURVE_LINEAR_WASM=crates/curve-linear/target/wasm32-unknown-unknown/release/curve_linear.wasm bun test src/utils/path/curve.spec.ts

https://chatgpt.com/codex/tasks/task_e_68f84ca0b98883269d30d3bbbb43e08a

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.

1 participant