commit | 421359ac52bfc80946929c4ffeacf6a68273e758 | [log] [tgz] |
---|---|---|
author | Hanyuan Zhao <hanyuan-z@qq.com> | Tue Mar 05 15:37:35 2024 +0800 |
committer | Tom Rini <trini@konsulko.com> | Wed Mar 13 12:40:43 2024 -0400 |
tree | 7107a561bfccef84411b2d04500ae457d03d27f0 | |
parent | 44951340309d0dca73c05fc61406a1e839d1da93 [diff] |
cli: allow users to determine history buffer allocation method This commit allows users to choose the appropriate memory allocation method between static allocated and dynamically calloc. The previous static-array way will not obviously contribute to the final binary size since it is uninitialized, and might have better performance than the dynamical one. Now we provide the users with both the two options. Signed-off-by: Hanyuan Zhao <hanyuan-z@qq.com>