Just wondering is PREG_OFFSET_CAPTURE is needed here
|
$count = preg_match_all($this->lexerRegex, $text, $matches, PREG_SET_ORDER | PREG_OFFSET_CAPTURE); |
I don't see offset used anywhere in the following code however during tests I found that it uses up memory pretty heavily. If I did my testing right, in one case
preg_match_all() uses up 80 MB with
PREG_OFFSET_CAPTURE and 23 MB without.
Just wondering is
PREG_OFFSET_CAPTUREis needed hereShortcode/src/Parser/RegularParser.php
Line 338 in 65d8b29
I don't see offset used anywhere in the following code however during tests I found that it uses up memory pretty heavily. If I did my testing right, in one case
preg_match_all()uses up 80 MB withPREG_OFFSET_CAPTUREand 23 MB without.