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/>
index | next in thread | previous in thread | raw e-mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=234949 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 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.help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-234949-227-36rhmGF2M4>
