Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Parser: Propose new hand-coded parser #8083
For some time we've needed a more performant PHP parser for the first
I'm proposing this implementation of the spec parser as an alternative
For posterity's sake I ran the merged parser through the parser comparator and compared it against the auto-generated spec parser. Here are the results from my laptop
The tests were done on my late 2013 rMBP quad core 2.6 GHz laptop. According to the Intel Power Gadget the CPU was running at 3.6 GHz the entire time. Each document was parsed with each parser at least 47 times and the runs were at random and each run was randomly chosen to parse the document between one and five times in a row before returning the results. Runtime and memory use were measured inside a runner script running in Docker as described in the parser comparator.
pento left a comment
Noice! Let's get this in sooner rather than later, so we can make inroads on the things depending on having a faster parser.
I've left some comments, here are a few random notes that have occurred to me, as well:
With this performance improvement, it seems like we could change