Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AssemblyScript / WASM findings #1

Open
donmccurdy opened this issue May 5, 2023 · 0 comments
Open

AssemblyScript / WASM findings #1

donmccurdy opened this issue May 5, 2023 · 0 comments

Comments

@donmccurdy
Copy link
Owner

donmccurdy commented May 5, 2023

Notes to self —

  • Prefer StaticArray
  • Use unchecked array read/write (180 MB/s → 680 MB/s)
  • Any size optimization can have a performance cost, measure it
  • Incremental GC has some overhead, measure it
  • While the 'raw' bindings could be adapted for npm packaging more easily than writing custom bindings as I've done here, I don't yet see how to mutate the input+output arrays in place, without custom bindings.
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

No branches or pull requests

1 participant