Antwort: Spirit-general Digest, Vol 111, Issue 5

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Antwort: Spirit-general Digest, Vol 111, Issue 5

Steffen.Roeber
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 11 Aug 2015 20:15:13 +0800
> From: Joel de Guzman <[hidden email]>
> Subject: Re: [Spirit-general] migrate from classic to qi
> To: [hidden email]
> Message-ID: <mqcp0k$j5$[hidden email]>
> Content-Type: text/plain; charset=windows-1252; format=flowed
>
> On 8/11/15 1:39 PM, [hidden email] wrote:
> > Ok. passing the rule directly to parse() is not so clever, but why
> is classic parser so
> > much faster in this case?
>
> I can't conclude that it is faster in this case without further tests.
> I can assure you though that Qi is a lot faster than classic in the
> normal case, especially with ASTs involved.
>
> <BTW, Please avoid top posting>
>
> Regards,
> --
> Joel de Guzman
>
http://www.ciere.com
>
http://boost-spirit.com
>
http://www.cycfi.com/
>
>
>
>
Ok. I tried extracting the rule from the phrase_parse call. For example

rule<const char *> messageRule = uint_ >> uint_;

But how in this case both integer values are no longer synthesized attributes. What is the correct signature of the messageRule type?
Or other:
What is the most performaant way to parse these two integer values are assign them to two variables?
------------------------------------------------------------------------------

_______________________________________________
Spirit-general mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/spirit-general