Skip to main content



      Home
Home » Modeling » TMF (Xtext) » Large Files slows the Editor(Is there a way to improve the peformance?)
Large Files slows the Editor [message #917597] Thu, 20 September 2012 04:27 Go to next message
Eclipse UserFriend
Hello everybody,

My editor slows down when I load big files (such a file contains approximately 8000 lines).

When I stop typing for 2 seconds or start a new line, then the editor will start to parse the text.

Is there a way to increase the waiting time?

Is it possible to disable the parsing step after a new line was started?

Best Regards,

Ivo
Re: Large Files slows the Editor [message #917741 is a reply to message #917597] Thu, 20 September 2012 07:41 Go to previous messageGo to next message
Eclipse UserFriend
There are probably several factors which contribute to this. Parsing itself might not even be the main factor, the Eclipse editor framework also gets slow(er) for large files.

Try to change the DSL in such a way that you can split the document over several files.
Re: Large Files slows the Editor [message #918224 is a reply to message #917741] Thu, 20 September 2012 17:26 Go to previous message
Eclipse UserFriend
On 2012-20-09 13:41, Aaron Digulla wrote:
> There are probably several factors which contribute to this. Parsing
> itself might not even be the main factor, the Eclipse editor framework
> also gets slow(er) for large files.
>
> Try to change the DSL in such a way that you can split the document over
> several files.

You may also want to take a closer look at your grammar. I had an
implementation that was very inefficient due to having too many small
nodes. In my case, moving complexity to the lexer had a dramatic
performance impact.

Also, if your grammar requires a lot of backtracking, try to eliminate
backtracking.

Hope that helps.
- henrik
Previous Topic:Custom DSL with OCL constraints
Next Topic:Formatting ML_Comment inside a indentation block ?
Goto Forum:
  


Current Time: Wed Nov 05 13:55:12 EST 2025

Powered by FUDForum. Page generated in 0.24668 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top