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

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun May 26 23:31:59 UTC 2019


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

--- Comment #12 from Mark Johnston <markj at 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.

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


More information about the freebsd-bugs mailing list