Re: Qi Symbols parser performance
Joel de Guzman <[email protected]> Sat, 13 Jan 2018 08:20:03 +0800
| Newsgroups | gmane.comp.parsers.spirit.general |
|---|---|
| Message-ID | <[email protected]> |
On 13/01/2018 6:58 AM, Seth wrote: > 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 Wonderful! Thank you very much for taking the time to inspect deeper into this issue. I owe you a million thanks! Regards, -- Joel de Guzman http://www.ciere.com http://boost-spirit.com http://www.cycfi.com/ ------------------------------------------------------------------------------ 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