Skip to content

Commit dcc2e17

Browse files
committedAug 27, 2024
Updated build options to improve performance on esp-idf 4.4/5.x
Starting with esp-idf 4.4, build options `-fno-jump-tables -fno-tree-switch-conversion` are always used. [1] This is very bad for us because most emulators rely on switches being converted to jump tables. This patch brings performance back to parity with 4.3. 1. https://github.com/espressif/esp-idf/releases/tag/v4.4: > Always compile with -fno-jump-tables -fno-tree-switch-conversion by default. This could results in performance regression for code that relies heavily on this optimization. See api-guides/memory-types.rst for how to enable it for specific source files if necessary.
1 parent 6d5482a commit dcc2e17

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎base.cmake

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ macro(rg_setup_compile_options)
55
component_compile_options(
66
-D${RG_BUILD_TARGET}=1
77
-DRETRO_GO=1
8+
-fjump-tables -ftree-switch-conversion
89
${ARGV}
910
)
1011

0 commit comments

Comments
 (0)
Please sign in to comment.