RE: JavaCC memory problems [was: Re: Problems with build Velocity]

2007-03-13 Thread Ryan Smith
11:18 PM To: Velocity Developers List Subject: Re: JavaCC memory problems [was: Re: Problems with build Velocity] Did "ant test" pass? It'd be interesting to see an example high-memory use case and get a feel for what percentage this lowers the memory use. WILL On 3/13/07, Sylwe

RE: JavaCC memory problems [was: Re: Problems with build Velocity]

2007-03-13 Thread Ryan Smith
; } > > > > > > > > currentTemplateName = ""; > > > > - > > > > +token_source.clearStateVars(); > > > > +if (velcharstream!=null) velcharstream.Done(); > > > > return sn;

Re: JavaCC memory problems [was: Re: Problems with build Velocity]

2007-03-13 Thread Will Glass-Husain
- > > > +token_source.clearStateVars(); > > > +if (velcharstream!=null) velcharstream.Done(); > > > return sn; > > > } > > > > > > > > > > > > 2007/3/12, Ryan Smith <[EMAIL PROTECTED]>: &g

Re: JavaCC memory problems [was: Re: Problems with build Velocity]

2007-03-13 Thread Will Glass-Husain
> > > > > > > > > > 2007/3/12, Ryan Smith <[EMAIL PROTECTED]>: > > > > > > > > > > > > Will, > > > > > > > > Where would you put the code to call the Done() method and free up the > &

Re: JavaCC memory problems [was: Re: Problems with build Velocity]

2007-03-13 Thread Sylwester Lachiewicz
tream.Done(); > > return sn; > > } > > > > > > > > 2007/3/12, Ryan Smith <[EMAIL PROTECTED]>: > > > > > > > > > Will, > > > > > > Where would you put the code to call the Done() method and free up the > &g

Re: JavaCC memory problems [was: Re: Problems with build Velocity]

2007-03-12 Thread Will Glass-Husain
> > memory? > > > > We currently doing profiling of Velocity as well and are trying to find > > places exactly like this. > > > > Ryan > > > > -Original Message- > > From: Will Glass-Husain [mailto:[EMAIL PROTECTED] > > Sent: Monday, Mar

Re: Problems with build Velocity

2007-03-12 Thread Will Glass-Husain
Sylvester, It looks like the "ant parser" task was not properly cleaning up after itself. I've made a revision to the build files that should fix this. Typing ant clean ant parser -Djavacc.home=\your\javacc\path ant compile should now work fine. WILL On 3/10/07, Sylwester Lachiewicz <[EMAIL

Re: JavaCC memory problems [was: Re: Problems with build Velocity]

2007-03-12 Thread Will Glass-Husain
s well and are trying to find > places exactly like this. > > Ryan > > -Original Message- > From: Will Glass-Husain [mailto:[EMAIL PROTECTED] > Sent: Monday, March 12, 2007 2:47 PM > To: Velocity Developers List > Subject: Re: JavaCC memory problems [was: Re:

Re: JavaCC memory problems [was: Re: Problems with build Velocity]

2007-03-12 Thread Sylwester Lachiewicz
ing of Velocity as well and are trying to find places exactly like this. Ryan -Original Message- From: Will Glass-Husain [mailto:[EMAIL PROTECTED] Sent: Monday, March 12, 2007 2:47 PM To: Velocity Developers List Subject: Re: JavaCC memory problems [was: Re: Problems with build

RE: JavaCC memory problems [was: Re: Problems with build Velocity]

2007-03-12 Thread Ryan Smith
, 2007 2:47 PM To: Velocity Developers List Subject: Re: JavaCC memory problems [was: Re: Problems with build Velocity] Thanks for the tips! Definitely something to investigate. WILL On 3/12/07, Sylwester Lachiewicz <[EMAIL PROTECTED]> wrote: > Hi, > > today JavaCC works fine - mayb

Re: JavaCC memory problems [was: Re: Problems with build Velocity]

2007-03-12 Thread Will Glass-Husain
Thanks for the tips! Definitely something to investigate. WILL On 3/12/07, Sylwester Lachiewicz <[EMAIL PROTECTED]> wrote: Hi, today JavaCC works fine - maybe there was bad day ;) I run profiler with simple velocity app (2 .vm file, simple merge) and found that internal by design CharStream

JavaCC memory problems [was: Re: Problems with build Velocity]

2007-03-12 Thread Sylwester Lachiewicz
Hi, today JavaCC works fine - maybe there was bad day ;) I run profiler with simple velocity app (2 .vm file, simple merge) and found that internal by design CharStream has method : --- /** * The lexer calls this function to indicate that it is done with the stream * and hence implementatio

Re: Problems with build Velocity

2007-03-12 Thread Will Glass-Husain
Hi Sylvester, Thanks for the note on the build script. It really needs to check for a min of 1.6. I'm not sure why you have problems compiling. I use javacc 3.2 as well. Did you type "ant clean" first? JavaCC generates node files and Parser.java. The node files are not needed and can be del