Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 May 2019 22:35:02 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 234949] Strip is enormously slow when operating on Haskell binaries
Message-ID:  <bug-234949-227-pJLBIjjAaf@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-234949-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-234949-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D234949

--- Comment #11 from Mark Johnston <markj@FreeBSD.org> ---
(In reply to Mark Johnston from comment #10)
Hmm, GNU strip seems to do something similar, but manages to be much faster.

Some profiling points at nested loops in create_scn->is_remove_reloc_scn().=
=20
Changing is_remove_reloc_scn() to use elf_getscn() instead of searching the
section list gets me down to 38s.

Profiling also points at insert_to_sec_list(), which would appear to benefit
from a binary search tree as well.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-234949-227-pJLBIjjAaf>