Changes between Initial Version and Version 1 of Ticket #60510
- Timestamp:
- 02/12/2024 04:10:51 PM (3 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #60510 – Description
initial v1 10 10 11 11 * `str_replace()` is less performant than `substr()` (see https://3v4l.org/TbQ9U). 12 Propose: calcu ating the plugins' directory path's `strlen()` before the loop and switching to `substr()`.12 Propose: calculating the plugins' directory path's `strlen()` before the loop and switching to `substr()`. 13 13 14 14 Follow-up to [57545] / #22316 and [57592] / #60461. 15 16 References: 17 * `str_replace()` https://www.php.net/manual/en/function.str-replace.php 18 * `substr()` https://www.php.net/manual/en/function.substr.php 19 * `strlen()` https://www.php.net/manual/en/function.strlen.php 20 * Show the comparison in action https://3v4l.org/TbQ9U.