[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.technology.imp] Re: Possible performance bug in LPG?

Hi Ed,

Sorry. For whatever reason I thougth IMP and LPG are somehow connected. The report would certainly belong to the LPG newsgroup.
Thanks for pointing out the memory problems associated with reusing a parser in general.


Dieter


Am 28.06.2009, 07:38 Uhr, schrieb Ed Willink <ed@xxxxxxxxxxxxx>:
Hi Dieter

 > This bug can be fixed very easy by adding the following lines to the
 > reset method in the DeterministicParser:
 >     locationStack = null;
 >     parseStack= null;
 >     stateStack= null;

A bug with LPG should be raised against LPG and perhaps discussed
on an LPG newsgroup.

I am merely pointing out how difficult it is to avoid locking parsed
artefacts in memory and consequently how reuse of a parser perhaps
aggaravates the difficulties.

	Regards

Ed Willink



-- Erstellt mit Operas revolutionärem E-Mail-Modul: http://www.opera.com/mail/