Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 May 2019 23:31:56 +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-jeFk6mrSW9@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 #12 from Mark Johnston <markj@FreeBSD.org> ---
It looks like most of the rest of the slowdown comes from inefficient
implementations in insert_to_strtab() and lookup_string().  The latter can =
be
replaced with memmem(), which helps a bit.  In a lot of cases when we call
lookup_string() we should in principle be able to reuse the shstrtab index =
from
the old section and thus avoid the lookup entirely.  However,
insert_to_strtab() may modify the table in place if it finds a string in the
table that is a suffix of the string to be inserted.

--=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-jeFk6mrSW9>