diff options
author | Alon Zakai <azakai@google.com> | 2024-09-10 14:22:41 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-10 14:22:41 -0700 |
commit | b0c955d4e5d1454dd9d6036d25ec9118146eee4c (patch) | |
tree | b332998f0cca1e84111c5aa7b90a74d3e5e22c91 /src/passes/PostEmscripten.cpp | |
parent | 34ee8342f8148e4c25bd1990e518cd8a9a502f80 (diff) | |
download | binaryen-b0c955d4e5d1454dd9d6036d25ec9118146eee4c.tar.gz binaryen-b0c955d4e5d1454dd9d6036d25ec9118146eee4c.tar.bz2 binaryen-b0c955d4e5d1454dd9d6036d25ec9118146eee4c.zip |
[NFC] Remove excessive debug logging from binary reading (#6927)
We were doing a debug logging for every LEB byte. It turns out that the
isDebugEnabled() calls are expensive when called so frequently: in a
release+assertion build, even with debug disabled, these checks are the
highest thing in the profile. This PR removes the checks, which makes
binary reading 12% faster.
Diffstat (limited to 'src/passes/PostEmscripten.cpp')
-rw-r--r-- | src/passes/PostEmscripten.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/passes/PostEmscripten.cpp b/src/passes/PostEmscripten.cpp index 0e2c268de..20f26e211 100644 --- a/src/passes/PostEmscripten.cpp +++ b/src/passes/PostEmscripten.cpp @@ -27,6 +27,7 @@ #include <ir/table-utils.h> #include <pass.h> #include <shared-constants.h> +#include <support/debug.h> #include <wasm-builder.h> #include <wasm-emscripten.h> #include <wasm.h> |