diff --git a/codecs/rotate/package.json b/codecs/rotate/package.json index 5e26e8d7..add6a95a 100644 --- a/codecs/rotate/package.json +++ b/codecs/rotate/package.json @@ -3,7 +3,7 @@ "scripts": { "build:image": "docker build -t squoosh-rotate .", "build": "docker run --rm -v $(pwd):/src squoosh-rotate ./build.sh", - "benchmark": "echo File size after gzip && npm run benchmark:filesize && echo Baseline && npm run benchmark:baseline && echo Optimizing && npm run benchmark:optimizing", + "benchmark": "echo File size after gzip && npm run benchmark:filesize && echo Optimizing && npm run -s benchmark:optimizing", "benchmark:baseline": "v8 --liftoff --no-wasm-tier-up --no-opt ./benchmark.js", "benchmark:optimizing": "v8 --no-liftoff --no-wasm-tier-up ./benchmark.js", "benchmark:filesize": "cat rotate.wasm | gzip -c9n | wc -c" diff --git a/codecs/rotate/rotate.rs b/codecs/rotate/rotate.rs index 53b944c4..550318e8 100644 --- a/codecs/rotate/rotate.rs +++ b/codecs/rotate/rotate.rs @@ -22,7 +22,7 @@ impl HardUnwrap for Option { } } -const TILE_SIZE: usize = 64; +const TILE_SIZE: usize = 16; fn get_buffers<'a>(width: usize, height: usize) -> (&'a [u32], &'a mut [u32]) { let num_pixels = width * height; diff --git a/codecs/rotate/rotate.wasm b/codecs/rotate/rotate.wasm index 31711159..246fe6b7 100755 Binary files a/codecs/rotate/rotate.wasm and b/codecs/rotate/rotate.wasm differ