mirror of
https://github.com/webmproject/libwebp.git
synced 2024-11-19 20:08:28 +01:00
WASM: don't use USE_GENERIC_TREE
It is 2-4% faster to use hard-coded tree on WASM Bug: webp:643 Change-Id: I0a192fc6af210c79814a81084cd1f199714bf46c
This commit is contained in:
parent
eef903d04a
commit
f0c53cd966
@ -16,7 +16,8 @@
|
||||
#include "src/utils/bit_reader_inl_utils.h"
|
||||
|
||||
#if !defined(USE_GENERIC_TREE)
|
||||
#if !defined(__arm__) && !defined(_M_ARM) && !WEBP_AARCH64
|
||||
#if !defined(__arm__) && !defined(_M_ARM) && !WEBP_AARCH64 && \
|
||||
!defined(__wasm__)
|
||||
// using a table is ~1-2% slower on ARM. Prefer the coded-tree approach then.
|
||||
#define USE_GENERIC_TREE 1 // ALTERNATE_CODE
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user