[Bug 234949] Strip is enormously slow when operating on Haskell binaries

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun May 26 22:10:15 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=234949

Mark Johnston <markj at FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |markj at FreeBSD.org

--- Comment #10 from Mark Johnston <markj at FreeBSD.org> ---
(In reply to Ed Maste from comment #6)
I tried replacing the section list with a red-black tree, ordered by section
index.  It reduced the runtime of "strip libHSCabal-2.4.0.1.a" from 1m20s to
52s, so this isn't the only problem.

>From reading the elfcopy code, it looks like the strip implementation is just
naive.  We copy each elf file in the archive into a temp archive, during which
strip does its filtering, and finally rename the tempfile over the original. 
So even if strip has nothing to do, it ends up doing a lot of work.

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


More information about the freebsd-bugs mailing list