Gideon memory usage

Roberto Raggi roberto at kdevelop.org
Wed Feb 26 18:57:04 UTC 2003


On Wed, 2003-02-26 at 18:26, Eray Ozkural wrote:
> On Wednesday 26 February 2003 17:48, Roberto Raggi wrote:
> > wow ;) please eray help me to finish it, i'm gonna crazy with it, it's
> > very difficult to write a complete parser for c++ alone ;)
> >
> 
> I sympathize with that :)
> 
> > take a look into ast.h, its contains all informations computed while
> > parsing.
> 
> There doesn't seem to be much redundant information, the only thing that I 
> would think would be a possible source of memory consumption is the use of 
> fully qualified identifiers in an extensive manner (doesn't scale too well)
hmm, the point is that if you want understand the strange "name" of
certains c++ source files you must use qualified and unqualified name :(

maybe, to reduce the memory usage we can remove the "debug" information
that i've attached to the nodes(== QString AST::text() ) and make the
AST::type() a pure method.

we can also, remove children(),appendChild(),removeChild() from AST,
because now we can use TreeParser to implement Tree Walkers.

ciao robe






More information about the KDevelop-devel mailing list