Re: [PATCH v3 2/3] cli: allow users to determine history buffer allocation method

2024-03-13 Thread Tom Rini
On Tue, Mar 05, 2024 at 03:37:35PM +0800, Hanyuan Zhao wrote: > 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

[PATCH v3 2/3] cli: allow users to determine history buffer allocation method

2024-03-04 Thread Hanyuan Zhao
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