Hi!

> A single long line containing no markup is indeed an edge case, but it
> is a good reference case since it is the input where the parser will run
> at its fastest.

Bubblesort will also have O(N) complexity sometimes :-)

> Replacing the spaces with newlines will cause a tenfold increase in the
> execution time.  Sure, in relative numbers less is time spent executing
> regexps, but in absolute numbers, more time is spent there.


Well, this is not fair - you should sum up all zend symbols if you compare that 
way - there're no debugging symbols for libpcre, so you get aggregated view. 
Thats same like saying that 10 is smaller number than 7, just because you can 
factorize it ;-) 

Comparing apples and oranges doesn't always help, that kind of hand waving may 
impress others, but some have spent more time looking at that data than just 
for ranting in single mailing list thread ;-) 

Cheers,
Domas
_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to