[php-src] Issue #7847: stripos has very bad performance
| From: | iluuu1994 | Date: | Fri, 31 Dec 2021 19:14:07 +0000 |
| Subject: | [php-src] Issue #7847: stripos has very bad performance | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-238690@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/7847
Comment Author: iluuu1994
@kamil-tekiela It avoids copying of both the haystack and needle so two allocations less
essentially. But I haven't measured it. It will likely be insignificant unless the string is
very very large as the memory is freed before the function returns.