Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Performance problems with marker creation in an custom editor
Performance problems with marker creation in an custom editor [message #1719849] Tue, 12 January 2016 15:07 Go to next message
Marcel Austenfeld is currently offline Marcel AustenfeldFriend
Messages: 160
Registered: July 2009
Senior Member
I'm creating error and warning markers inside of a custom Eclipse editor. The markers are created within an error listener based on the ANTLR parser generator.

The bottleneck however is the creation of markers if many errors or warning are detected and created.

It significantly slows down the performance of the editor.

How can I speed up the marker creation?

Would it be wise to limit the amount of markers?

Or do I need to refactor out the marker creation in a job (collect errors in the listener and then create the markers in a Eclipse job)?

Any advise is appreciated.
Re: Performance problems with marker creation in an custom editor [message #1721409 is a reply to message #1719849] Wed, 27 January 2016 09:11 Go to previous messageGo to next message
Felix Dorner is currently offline Felix DornerFriend
Messages: 392
Registered: December 2015
Senior Member
On 12-Jan-16 16:07, Marcel Austenfeld wrote:
> Or do I need to refactor out the marker creation in a job (collect
> errors in the listener and then create the markers in a Eclipse job)?

Each time you create a marker, a ResourceChange event is sent. If you
create lots of markers, you should do this in a WorkspaceJob so that
these notifications are batched. See here:

https://eclipse.org/articles/Article-Concurrency/jobs-api.html
Re: Performance problems with marker creation in an custom editor [message #1722479 is a reply to message #1721409] Fri, 05 February 2016 08:50 Go to previous message
Marcel Austenfeld is currently offline Marcel AustenfeldFriend
Messages: 160
Registered: July 2009
Senior Member
Hello Felix,

sorry for the late reply. Thank you for your help. I will try that.
Previous Topic:can't create "New android project"
Next Topic:IStartup does not appear to work in Eclipse Mars
Goto Forum:
  


Current Time: Thu Sep 19 16:01:14 GMT 2024

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

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

Back to the top