Re: [PATCH v3 09/26] objtool: Optimize find_section_by_name()
From: Miroslav Benes
Date: Wed Mar 25 2020 - 06:18:26 EST
On Tue, 24 Mar 2020, Peter Zijlstra wrote:
> In order to avoid yet another linear search of (20k) sections, add a
> name based hash.
>
> This reduces objtool runtime on vmlinux.o by some 10s to around 35s.
>
> Signed-off-by: Peter Zijlstra (Intel) <peterz@xxxxxxxxxxxxx>
> Acked-by: Josh Poimboeuf <jpoimboe@xxxxxxxxxx>
Reviewed-by: Miroslav Benes <mbenes@xxxxxxx>
M