Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [wtp-dev] Question on AST creation for decoration-like jobs

On 03/28/2014 07:23 PM, Victor Rubezhny wrote:
What is the point of resolving bindings each time we need to create an AST when reconcile? (It happens for almost each character typed in by a user or the selection is changed in the editor).
Could it be implemented that way to save heap space? Did you try to measure memory usage with lazy resolution vs full parsing?
If it is the reason, then it seems to me that memory isn't much of a end-user problem nowadays and that as long as it doesn't cause OutOfMemory to users, it's probably worth increasing the memory usage to improve reactivity and speed.

I'm getting the AST produced almost 8 times faster and no more StackOverflowErrors in "Semantic Highlighting Job", "Requesting _javascript_ AST from selection" and "Decoration Calculation" Jobs.
That sounds like a great result!
--
Mickael Istria
Eclipse developer at JBoss, by Red Hat
My blog - My Tweets

Back to the top