Skip to content
Snippets Groups Projects
user avatar
Roeland Jago Douma authored
This is IMO a bit more readable and it seems to make the code faster.
Tested it on the company instance where there are over 3k calls to this
function. It shaves off around 10ms.

The advantage here is that the pattern gets optimized by php itsel and
cached.
Also looking for all patterns at the same time and especially no longer
looping for /./ patterns should save time.

Signed-off-by: default avatarRoeland Jago Douma <roeland@famdouma.nl>
d5bf2c45
History
Name Last commit Last update
..