RegEx vs. Manually Parsing String (PHP Performance) -
is there problem (performance-wise) manually parsing string follows, opposed using regular expressions or built in string replacement functions?
for ($i=0;$i<strlen($string);$i++) { $thischar = $string[$i]; //do more stuff }
thanks!
there things done more efficient custom code regex.
as long both have same o complexity , not handling humongous strings, readability , maintainability should equally or more important argument.
for actual performance benchmark compare 2 solutions.
Comments
Post a Comment