Skip to content

Commit 9c0ad85

Browse files
chore: optimize libwaku size (#3242)
* avoid compile TRACE level to reduce libwaku size * waku_rln_relay/constants.nim: avoid adding constant seq that is used in tests only * ci:yml USE_LIBBACKTRACE=0 to force -d:debug when running tests
1 parent 0e0fcfb commit 9c0ad85

File tree

4 files changed

+60011
-60005
lines changed

4 files changed

+60011
-60005
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ jobs:
117117
118118
export MAKEFLAGS="-j1"
119119
export NIMFLAGS="--colors:off -d:chronicles_colors:none"
120+
export USE_LIBBACKTRACE=0
120121
121122
make V=1 LOG_LEVEL=DEBUG QUICK_AND_DIRTY_COMPILER=1 POSTGRES=$postgres_enabled test testwakunode2
122123

Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
BUILD_SYSTEM_DIR := vendor/nimbus-build-system
88
EXCLUDED_NIM_PACKAGES := vendor/nim-dnsdisc/vendor
99
LINK_PCRE := 0
10-
LOG_LEVEL := TRACE
1110
FORMAT_MSG := "\\x1B[95mFormatting:\\x1B[39m"
1211
# we don't want an error here, so we can handle things later, in the ".DEFAULT" target
1312
-include $(BUILD_SYSTEM_DIR)/makefiles/variables.mk

waku.nimble

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ task testcommon, "Build & run common tests":
101101
### Waku tasks
102102
task wakunode2, "Build Waku v2 cli node":
103103
let name = "wakunode2"
104-
buildBinary name, "apps/wakunode2/"
104+
buildBinary name, "apps/wakunode2/", " -d:chronicles_log_level='TRACE' "
105105

106106
task benchmarks, "Some benchmarks":
107107
let name = "benchmarks"

0 commit comments

Comments
 (0)