3

From few days content assist has been working very slow and it almost takes 7-10 seconds to assist on any import statement or something. Are there any ways through which I can speed up its action ?

Thanks -Aj

Anuj Balan
  • 7,629
  • 23
  • 58
  • 92

2 Answers2

1

From Eclipse 3.3 (bug 201718) to 3.6 (bug 201718), the content assist has always been a bit slow.

The first thing to test is whether or not you see the same issue with the latest Eclipse Indigo 3.7

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • Its the same with Eclipse-3.7 Indigo. Even here, the content assist is slow. – Anuj Balan Aug 18 '11 at 13:00
  • @Ajj: do you launch your Eclipse Indigo with the latest JDK6? And with an optimized eclipse.ini like this one? http://stackoverflow.com/questions/142357/what-are-the-best-jvm-settings-for-eclipse/3275659#3275659 – VonC Aug 18 '11 at 13:44
  • Am using JDK6. And this is how my eclipse.ini looks-- -startup plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar --launcher.library plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.100.v20110502 -product org.eclipse.epp.package.jee.product --launcher.defaultAction openFile --launcher.XXMaxPermSize 256M -showsplash org.eclipse.platform --launcher.XXMaxPermSize – Anuj Balan Aug 19 '11 at 04:46
  • @Ajj: right, so try using the `eclipse.ini` I referenced, and see if that make any difference. – VonC Aug 19 '11 at 05:30
0

I believe your content assist is the same thing as code formatting in eclipse. Eclipse would format your code, organize your import automatically. you can disable the formatting by following this link quoted from Superuser

Community
  • 1
  • 1
TheOneTeam
  • 25,806
  • 45
  • 116
  • 158
  • Oh ok. Seems to be the reason. – Anuj Balan Aug 09 '11 at 06:03
  • I don't think this has anything to do with content assist. The things you describe can happen as a save-action. – Thilo Aug 09 '11 at 06:04
  • Well it hasn't really increased the pace !! It seems same still – Anuj Balan Aug 09 '11 at 06:35
  • @Ajj: Can you describe your situation more in detail. So if the code doesn't reformat, the eclipse is still doing some other operations when you save your file? – TheOneTeam Aug 09 '11 at 07:10
  • I have unchecked the options and now its not formatting. While saving, it doesent take much time, but when I click anything for content assist(like importing a class), it takes 6-10 seconds. – Anuj Balan Aug 09 '11 at 07:14