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

WASM support #217

Closed
Licenser opened this issue Feb 18, 2022 · 2 comments · Fixed by #219
Closed

WASM support #217

Licenser opened this issue Feb 18, 2022 · 2 comments · Fixed by #219

Comments

@Licenser
Copy link
Member

Whilst WASM doesn't expose the native CPU instructions, it does have its own SIMD intrinsics (see https://doc.rust-lang.org/core/arch/wasm32/index.html#simd).

I had a quick look at porting this crate to WASM this evening and it seems to be feasible. I've not had a chance to test it in the slightest, but it builds. (https://github.com/sam-kirby/simd-json/tree/wasm)

I'll try including it in a yew project I'm working on tomorrow and see if it a) works and b) offers any performance improvements.

Originally posted by @sam-kirby in #161 (comment)

@Licenser
Copy link
Member Author

@Sparkenstein this might be of interest to you :)

@Sparkenstein
Copy link

thank you so much, this helps a lot 👍

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 a pull request may close this issue.

2 participants