From b0c955d4e5d1454dd9d6036d25ec9118146eee4c Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Tue, 10 Sep 2024 14:22:41 -0700 Subject: [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. --- src/passes/PostEmscripten.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/passes/PostEmscripten.cpp') 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 #include #include +#include #include #include #include -- cgit v1.2.3