Yes. This is also the reason why PPCompositeParser caches the internal parser objects.


On Sat, Feb 21, 2015 at 11:24 PM, Johan Fabry <> wrote:

So the easy solution in ‘production use’ would be to create the parser once and then keep hanging on to it? I would not say that this is really a PetitParser issue, but more how the parser is used.

> On Feb 21, 2015, at 19:03, Thierry Goubier <> wrote:
> Hi Doru,
> the low hanging fruit is the time needed to create a PP parser (time for new).
> I profiled PPSmalltalkParser over a bench used by Lucas Renggli a few years ago, and PPSmalltalkParser spends half the time in "new" (and it is a lot slower than it used to be).
> Thierry

---> Save our in-boxes! <---

Johan Fabry   -
PLEIAD lab  -  Computer Science Department (DCC)  -  University of Chile

Moose-dev mailing list


"Every thing has its own flow"