avinassh / gg-flip

Highly performant Javascript library to flip the signs
https://avi.im/gg-flip/
MIT License
190 stars 5 forks source link

Feature request: wasm version? #2

Open breathe opened 6 years ago

breathe commented 6 years ago

Wasm is known to be more performant than JavaScripts. The wasm version could also decrease the file size which could help in cases where users need to flip a large number of bits from mobile networks. It could also reduce parse time — and given recent improvements to the wasm parsing speed on Firefox (https://hacks.mozilla.org/2018/01/making-webassembly-even-faster-firefoxs-new-streaming-and-tiering-compiler/) — perhaps could even enable a streaming bit flipping model by chunking up the switch in a way that allows the bit flipping request to be satisfied immediately and recompiled as the cases are streamed in to make multiple successively faster versions available as the download progresses.

avinassh commented 6 years ago

Why not?

Btw these are some really good ideas. Thank you. I will ship WASM support soon