Re: Design/structure X3 parser more like Qi parser

Gilles BRUNET <[email protected]>
Newsgroups gmane.comp.parsers.spirit.general
Message-ID <CY4PR15MB1191C05AC0A2C0465A064ECBBB9B0@CY4PR15MB1191.namprd15.prod.outlook.com>
QI seems mature, but X3 look promising. However, I experiment an embarrassing matter on QI (see the ticket no https://svn.boost.org/trac/boost/ticket/12497) and would like to draw your attention to it, since I think that both QI and X3 have the same behavior. Fixing it would change your mind a little.

Gilles
________________________________
De : Seth <[email protected]>
Envoyé : 13 décembre 2016 16:31
À : Spirit General Mailing List
Objet : Re: [Spirit-general] Design/structure X3 parser more like Qi parser

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><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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.