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.
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.