|
Boost Users : |
Subject: Re: [Boost-users] Comparison boost spirit and ANTLR
From: Joel de Guzman (djowel_at_[hidden])
Date: 2013-06-17 03:13:38
On 5/30/13 8:27 PM, Mathias Gaunard wrote:
> On 29/05/13 17:48, Michael Caisse wrote:
>> On 05/29/2013 05:32 AM, Mathias Gaunard wrote:
>>>
>>> Spirit is slow to compile and isn't very efficient at runtime, but it's
>>> fairly nice to use once you get used to it.
>>
>> Mathias,
>>
>> "isn't very efficient at runtime" ... are you concerned about the
>> processing speed, or something else?
>
> I'm concerned by the massive copying of attributes going on.
> Building a deep AST will result in a huge number of copies.
FWIW, Spirit is faster than ANTLR. People report Spirit to be 2.5 to 7 times
faster than ANTLR.
http://article.gmane.org/gmane.comp.parsers.spirit.general/16459/match=boost+spirit+antlr
http://article.gmane.org/gmane.comp.parsers.spirit.general/16463/match=spirit+antlr
Regards,
-- Joel de Guzman http://www.ciere.com http://boost-spirit.com http://www.cycfi.com/
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net