Suggestion for improving C++ parser memory usage

Robert Dewar dewar@adacore.com
Thu Dec 30 17:56:00 GMT 2004


Roger Sayle wrote:

> Whilst not as visible or impressive as the earlier O(n^2) -> O(n),
> improvement, cp_parser_implicitly_scoped_statement is called a lot
> parsing C++ code, and the unnecessary calls to allocate/deallocate
> entries on the scope stack aren't free.

OK, well it sounds worth a shot. I am happy to have my skepticism
disproved :-)




More information about the Gcc mailing list