Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse and Google plugin (gwt) very slow

I use Eclipse and GWT plugin.

I've got a medium project (about 500 files). When I save a file, it can be fast or takes a long long time (about 1 to 2 minutes). The problem is that now, it often takes long time to save.

The message in progress bar is "refreshing reference" and there is dozens of tasks "refreshing reference".

I don't know how to solve it...

Have you got an idea why eclipse is so slow and indicates dozens of "refreshing reference" tasks when it happens.

I precise I've got a good computer : 4Go RAM, double core Mac Book Pro 15" disk 7200

**EDIT: I confirmed it's come from google plugin eclipse. When I uninstall it, it runs perfectly. I think that this plugin has some bugs...

A thread has been started on GWT mailing list.

An issue has been opened: star it if you have same problems: http://code.google.com/p/google-web-toolkit/issues/detail?id=5773 **

like image 204
Jerome Cance Avatar asked Nov 05 '22 05:11

Jerome Cance


1 Answers

Here are some things that have caused severe slowness in Eclipse for me:

  • Having a large type hierarchy open in the "Type Hierarchy" view. This makes saving all files which are in the hierarchy extremely slow. Use "Clear history" on that view. A similar (though lesser) effect can also be caused by the "Search results" and similar views.
  • Remove all AspectJ integration, if possible. Similar with Spring integration (Springsource Tool Suite). These solutions cause a very significant slowdown.
  • Content assist: In "Preferences > Java > Editor > Content Assist > Advanced": Remove all checkmarks on "Java (Task focused)", and replace them with just "Java". This improves content assist speed by a multiple.

As always, use high enough memory settings in the eclipse.ini. Also, on the Mac, it's a good idea to use a current Cocoa version of Eclipse.

like image 139
Chris Lercher Avatar answered Nov 09 '22 07:11

Chris Lercher