Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 May 2019 22:10:12 +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-36rhmGF2M4@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

Mark Johnston <markj@FreeBSD.org> changed:

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

--- Comment #10 from Mark Johnston <markj@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 ju=
st
naive.  We copy each elf file in the archive into a temp archive, during wh=
ich
strip does its filtering, and finally rename the tempfile over the original=
.=20
So even if strip has nothing to do, it ends up doing a lot of work.

--=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-36rhmGF2M4>