Re: Very effective performance fix
Ah, indeed, I pulled the source from CVS, and the tip of the tree is improved a lot. I guess I should have checked this before 😊.
Using this code, we are only spending about 14% in parse_data(), so it doesn't leave a lot of room for improvement. Writing a recursive decent parser in PHP seems very reasonable, perhaps writing an LR(1) parser extension using an existing tool like Bison would be even better (but requires compiling ...) Either way, this would certainly shave of some time, but probably best we could hope for is about a 10% improvement. Not bad though, probably worth doing at some point.