Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » QuickFixProcessor performance (profiling)
icon5.gif  QuickFixProcessor performance (profiling) [message #761891] Wed, 07 December 2011 03:42 Go to next message
Kivanc Muslu is currently offline Kivanc Muslu
Messages: 152
Registered: November 2010
Senior Member
Hi all,

I tried profiling QuickFixProcessor.getCorrections(...) method with different setups and find out that the method slows down a lot (by 20 - 200 x) when the .java file that contains that compilation error that I asked proposals for is open and focused in Eclipse editor.

Can somebody explain me the reason beyond this and a possible workaround (if possible) so that I could invoke getCorrections(...) fast even if the file that contains the compilation error has focus?

Thanks in advance, best regards,
Re: QuickFixProcessor performance (profiling) [message #761944 is a reply to message #761891] Wed, 07 December 2011 05:27 Go to previous messageGo to next message
Dani Megert is currently offline Dani Megert
Messages: 3801
Registered: July 2009
Senior Member
On 07.12.2011 09:42, Kivanc Muslu wrote:
> Hi all,
> I tried profiling QuickFixProcessor.getCorrections(...) method with
> different setups and find out that the method slows down a lot (by 20
> - 200 x) when the .java file that contains that compilation error that
> I asked proposals for is open and focused in Eclipse editor.
I would not expect it to be 200x slower. If you have a reproducible case
then please profile both scenarios (open/closed editor) and then file a
bug against JDT Text.

Dani
>
> Can somebody explain me the reason beyond this and a possible
> workaround (if possible) so that I could invoke getCorrections(...)
> fast even if the file that contains the compilation error has focus?
>
> Thanks in advance, best regards,
Re: QuickFixProcessor performance (profiling) [message #761950 is a reply to message #761944] Wed, 07 December 2011 05:35 Go to previous messageGo to next message
Kivanc Muslu is currently offline Kivanc Muslu
Messages: 152
Registered: November 2010
Senior Member
Hi Dani,

I have done the profiling by modifying org.eclipse.jdt.ui plugin (QuickFixProcessor) and adding extra print statements with System.nanotime() calls. I am not sure if you would accept this as a bug report.

Also, I am more interested in understanding the reason beyond the slowdown (even if it is 20x or 10x, for me even that is important). Do you have a suggestion or idea why it might happen?

Thanks,
Re: QuickFixProcessor performance (profiling) [message #761974 is a reply to message #761950] Wed, 07 December 2011 06:20 Go to previous message
Dani Megert is currently offline Dani Megert
Messages: 3801
Registered: July 2009
Senior Member
On 07.12.2011 11:35, Kivanc Muslu wrote:
> Hi Dani,
>
> I have done the profiling by modifying org.eclipse.jdt.ui plugin
> (QuickFixProcessor) and adding extra print statements with
> System.nanotime() calls. I am not sure if you would accept this as a
> bug report.
>
> Also, I am more interested in understanding the reason beyond the
> slowdown (even if it is 20x or 10x, for me even that is important). Do
> you have a suggestion or idea why it might happen?
No. One needs to profile this with a profiler.

Dani
>
> Thanks,
Previous Topic:Call Chain Completion - Limiting Search Space
Next Topic:How can I tell Eclipse to not include other jars on a jar dependency's classpath?
Goto Forum:
  


Current Time: Tue Jul 29 06:57:00 EDT 2014

Powered by FUDForum. Page generated in 0.01675 seconds