
1 Aug
2023
1 Aug
'23
12:33 a.m.
In my efforts to get SPL to fit into flash after some changes I made, I noticed that av_ is one of the largest variables in SPL. As it turns out, we can generate it at runtime, and the code is already there. This has the potential to save 1-2k across the board, for some minor boot time increase.
Sean Anderson (3): malloc: Don't use ifdefs for SYS_MALLOC_DEFAULT_TO_INIT malloc: Don't statically initialize av_ if using malloc_init malloc: Enable SYS_MALLOC_RUNTIME_INIT by default in SPL
Kconfig | 27 +++++++++++++++++---------- common/dlmalloc.c | 16 ++++++++-------- 2 files changed, 25 insertions(+), 18 deletions(-)
--
2.40.1