Project

General

Profile

Actions

Task #78602

closed

Replace beginsWith method with strpos to reduce execution time

Added by Wouter Wolters about 8 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2016-11-07
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

Use the native PHP method strpos instead of StringUtility::beginsWith method.
The beginsWith method runtime compared to strpos check is much higher.

For some numbers:
https://gist.github.com/psychomieze/4a9d98d67be57d264613a16813b6778d

Actions

Also available in: Atom PDF