This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 8/8] gas: xtensa: speed up find_trampoline_seg


On Mon, Nov 27, 2017 at 11:39 AM, Max Filippov <jcmvbkbc@gmail.com> wrote:
> find_trampoline_seg takes noticeable time when assembling source with
> many sections. Cache the result of the most recent search and check it
> first. No functional changes.
>
> gas/
> 2017-11-20  Max Filippov  <jcmvbkbc@gmail.com>
>
>         * config/tc-xtensa.c (find_trampoline_seg): Add static variable
>         that caches the result of the most recent search.

This is OK.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]