[Bug 288321] memrchr function can be very slow
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 288321] memrchr function can be very slow"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 21 Jul 2025 20:57:54 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=288321
Robert Clausecker <fuz@FreeBSD.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|bugs@FreeBSD.org |fuz@FreeBSD.org
CC| |getz@FreeBSD.org
Status|New |Open
--- Comment #4 from Robert Clausecker <fuz@FreeBSD.org> ---
I'm not sure why I programmed it this way. It is clear that searching
backwards is a good idea. Either there was some reason why it cannot be done
or I just didn't think about it. Possibly I just carried on from strrchr(),
where you cannot seek backwards.
I'll think about it some more and possibly adjust the implementations to seek
backwards.
--
You are receiving this mail because:
You are the assignee for the bug.