On 4/20/11 5:17 PM, "Jim Idle" <j...@temporal-wave.com> wrote:

> This is available as the reuse() method on the input stream, lexer, and
> parser. 

And tree parser?

> If used then the lexer will also reuse the tokens from the last
> run and avoid any malloc.
> 
> However, you will need to use the snapshot in perforce to get that.
> Or just wait a few weeks for the next release.

I see, thank you Jim.


One more question. After read book and C-target docs,
I did not see section, which describe how works c-target with memory.

In my memory seat words, that C-target have own mempool,
which allow you destroy all objects (tokens, ast) at once.

Reuse()  will destroy not needed objects?


Btw, this is great to have own mempool.
I believe in v2 I have see that tons of destructor calls for each item...
Profiles did show 5-10% for destructors...


-- 
Best regards,

Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc

Valentina - Joining Worlds of Information
http://www.paradigmasoft.com

[I feel the need: the need for speed]



List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

-- 
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to il-antlr-inter...@googlegroups.com.
To unsubscribe from this group, send email to 
il-antlr-interest+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en.

Reply via email to