Re: [PATCH 1/6] kallsyms: Optimize multiple times of realloc() to one time of malloc()

2024-07-15 Thread Masahiro Yamada
On Thu, Jun 13, 2024 at 10:36 PM Zheng Yejian wrote: > > Array 'table' is used to store pointers of symbols that read from in.map > file, and its size depends on the number of symbols. Currently 'table' > is expanded by calling realloc() every 1 symbols read. > > However, there generally are a

[PATCH 1/6] kallsyms: Optimize multiple times of realloc() to one time of malloc()

2024-06-13 Thread Zheng Yejian
Array 'table' is used to store pointers of symbols that read from in.map file, and its size depends on the number of symbols. Currently 'table' is expanded by calling realloc() every 1 symbols read. However, there generally are around 10+ symbols, which means that the expansion is generall