Parallel OxiPNG improvements

- Refactor to work around Chromium's issue with postMessage queuing. https://bugs.chromium.org/p/chromium/issues/detail?id=1075645
 - Convert codec code to TypeScript.
 - Make separate parallel and non-parallel builds.
 - Switch to nightly Rust for OxiPNG to allow parallel builds (but also reuse it for regular builds to avoid installing two toolchains).
This commit is contained in:
Ingvar Stepanyan
2020-04-29 12:29:20 +01:00
committed by Ingvar Stepanyan
parent e462875807
commit 9420dba3bc
20 changed files with 377 additions and 191 deletions

View File

@@ -1,5 +1,5 @@
// @ts-ignore
import optimiser from '../../../codecs/oxipng/spawn.js';
import optimiser from '../../../codecs/oxipng/spawn';
import { EncodeOptions } from './encoder-meta';
export async function compress(data: ArrayBuffer, options: EncodeOptions): Promise<ArrayBuffer> {