On 11-05-03 03:40 AM, Andreas Jonsson wrote: > 2011-05-03 02:38, Chad skrev: > [...] >> I don't see any problem with keeping the parser in PHP, and as you point out >> with HipHop support on the not-too-distant horizon the complaints about >> performance with Zend will largely evaporate. > But most of the parser's work consists of running regexp pattern > matching over the article text, doesn't it? Regexp pattern matching are > implemented by native functions. Does the Zend engine have a slow > regexp implementation? I would have guessed that the main reason that > the parser is slow is the algorithm, not its implementation. > > Best Regards, > > Andreas Jonsson regexps might be fast, but when you have to run hundreds of them all over the place and do stuff in-language then the language becomes the bottleneck.
-- ~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://daniel.friesen.name] _______________________________________________ Wikitech-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikitech-l
