[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: C versus C++ parser performance
From: |
Akim Demaille |
Subject: |
Re: C versus C++ parser performance |
Date: |
Mon, 05 Feb 2007 15:29:59 +0100 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.93 (gnu/linux) |
>>> "GDA" == Geoffrey D Alexander <address@hidden> writes:
> However, I did notice a slowdown of 5 to 20 percent in the C++ parser.
> Also, the C++ parser shows an increase of 10 to 15 percent in the number
> of memory allocation as reported by valgrind.
> Is this a known problem? Are there plan to improve C++ parser
> performance?
Yes, it is known: for various reasons (such as avoiding to copy the
content of the stack) we implemented the stack on top of a std::deque.
Of course I'd like to use something more efficient, say std::vector.
At the same time, I'd like to implement something similar to a weak
form of variants that would allow use to include objects too, not just
PODs on the stack.
In the meanwhile, if you're interested in helping, it shouldn't be too
difficult to just keep the limitations, but use a std::vector.