Re: Design/structure X3 parser more like Qi parser
Seth <[email protected]>
| Newsgroups | gmane.comp.parsers.spirit.general |
|---|---|
| Message-ID | <[email protected]> |
On 13-12-16 22:55, Larry Evans wrote: > I want to make sure I'm reading that graph correctly. > It says that the average time using 'x3 new' is 870,000 ns; whereas > the average time using 'qi dynamic' is only 137 ns? Yes. Note you can use the drop-down to see the individual samples, so you can sense the spread of them too. Note also you can hide data series by clicking the legend labels. On 13-12-16 22:04, Michael Powell wrote: >>> After cleanup, the Qi version is still a lot faster >>> >> <http://stackoverflow-sehe.s3.amazonaws.com/e44a2c1d-356f-4773-bb51-22d307621a29/stats.html>. > "A lot"? You are being too modest... > Well. I did start off with the bad news because I think it's a performance /bug/. I agree that the performance doesn't entice a move to X3 for this particular grammar :) I haven't understood it fully but the profiler results seem to point at `parse_into_container` and `std::....::basic_string::aux_replace` (quoting from memory) > BTW, thanks doing this > > -regards, > Larry And thanks to Sandro for coming through with the interesting sample code to manifest this behaviour. Seth ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ Spirit-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/spirit-general