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

--- Comment #12 from Mark Johnston <[email protected]> ---
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.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"

Reply via email to