| Large Files slows the Editor [message #917597] |
Thu, 20 September 2012 04:27  |
Eclipse User |
|
|
|
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 #918224 is a reply to message #917741] |
Thu, 20 September 2012 17:26  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.04307 seconds