Switch to crossbeam-channel

Still not perfect due to usage of a static global, but this is much cleaner and more efficient thanks to proper blocking of Workers that wait for new messages instead of a manual spin-loop.
This commit is contained in:
Ingvar Stepanyan
2020-04-29 15:29:57 +01:00
committed by Ingvar Stepanyan
parent 9420dba3bc
commit 47f9d22dd8
18 changed files with 331 additions and 85 deletions

View File

@@ -1,4 +1,5 @@
use wasm_bindgen::prelude::*;
use oxipng::AlphaOptim;
mod malloc_shim;