Re: Qi Symbols parser performance

Seth <[email protected]> Fri, 12 Jan 2018 23:58:27 +0100
Newsgroups gmane.comp.parsers.spirit.general
Message-ID <[email protected]>
On 12-01-18 14:15, Stephan Menzel wrote:
> I had not idea what this was. For a Lambda, the () was missing after the
> capture list and the whole point of it. FinalIy I figured out it's a
> temporary lambda that is only used to initialize the substring. (Tutorials
> are _not_ a good place to show off and be super fancy about trivial stuff
> IMO).
Agree. It's not trivial, and it's not super fancy either though.

> So I came up with two different implementations. Please find
> the source attached

I've looked at it. I posted the notes in a stackoverflow post, as it is
more suited for this than email.

See it here https://stackoverflow.com/q/48235133/85371

Teaser:

Lambda runs took 2676 nanoseconds
Qi     runs took 98 nanoseconds
Map    runs took 189 nanoseconds





------------------------------------------------------------------------------
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