Skip to content

Commit 40cc061

Browse files
dlechlaurensvalk
authored andcommitted
bricks/_common/mpconfigport: Enable MICROPY_GC_ALLOC_THRESHOLD.
On hubs with PYBRICKS_OPT_EXTRA_LEVEL2. This can be a useful performance tweak for some applications.
1 parent 8137ff5 commit 40cc061

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bricks/_common/mpconfigport.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
#define MICROPY_DEBUG_PRINTERS (0)
5151
#define MICROPY_ENABLE_GC (1)
5252
#define MICROPY_ENABLE_FINALISER (1)
53-
#define MICROPY_GC_ALLOC_THRESHOLD (0)
53+
#define MICROPY_GC_ALLOC_THRESHOLD (PYBRICKS_OPT_EXTRA_LEVEL2)
5454
#define MICROPY_STACK_CHECK (1)
5555
#define MICROPY_HELPER_REPL (1)
5656
#define MICROPY_HELPER_LEXER_UNIX (0)

0 commit comments

Comments
 (0)