Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Hint to improve CDT Content Assist performance?
Hint to improve CDT Content Assist performance? [message #234182] Mon, 25 May 2009 07:07 Go to next message
Franz is currently offline FranzFriend
Messages: 2
Registered: July 2009
Junior Member
Hello

I'm having trouble with the performance of the CDT C++ Content Assist:

When it is used the first time after startup, for example by typing a '.'
after a variable, Eclipse freezes for about 5 minutes. It freezes with the
windows typical white menu bar.

When used the second time it takes up to 10 seconds to display the Content
Assist. For me this is too slow to work smoothly so I had to turn off the
Auto-Activation in the preferences. But programming without content assist
is somehow annoying.

Does anybody have some hints how I could improve the content assist
performance?

Here are some data about my workspace and enviroment:

- Workspace contains about 100 C++ Projects most of them are rather small
60 C++ files of about 200KB only a couple of them are large 1000 C++ files
of about 17MB.

- The *.pdom Files in the metadata are altogether 480MB. Most of them are
are between 1M and 10M. The largest one is 41M.

- Work with Eclipse 3.4.2 and CDT 5.0.2.

- Eclipse is started with the following VM arguments: Xms256m, Xmx512m,
XX:PermSize=256m, XX:MaxPermSize=256m

- I work on a Windows XP machine with 2G RAM and a 'Intel Core 2 Duo' with
2.66GHz.


Thanks for your help.

Regards
- Franz
Re: Hint to improve CDT Content Assist performance? [message #234681 is a reply to message #234182] Tue, 09 June 2009 13:53 Go to previous messageGo to next message
Anton Leherbauer is currently offline Anton LeherbauerFriend
Messages: 490
Registered: July 2009
Senior Member
Franz wrote:
> Hello
> I'm having trouble with the performance of the CDT C++ Content Assist:
>
> When it is used the first time after startup, for example by typing a
> '.' after a variable, Eclipse freezes for about 5 minutes. It freezes
> with the windows typical white menu bar.
> When used the second time it takes up to 10 seconds to display the
> Content Assist. For me this is too slow to work smoothly so I had to
> turn off the Auto-Activation in the preferences. But programming without
> content assist is somehow annoying.
> Does anybody have some hints how I could improve the content assist
> performance?
>
> Here are some data about my workspace and enviroment:
>
> - Workspace contains about 100 C++ Projects most of them are rather
> small 60 C++ files of about 200KB only a couple of them are large 1000
> C++ files of about 17MB.
>
> - The *.pdom Files in the metadata are altogether 480MB. Most of them
> are are between 1M and 10M. The largest one is 41M.
>
> - Work with Eclipse 3.4.2 and CDT 5.0.2.
>
> - Eclipse is started with the following VM arguments: Xms256m, Xmx512m,
> XX:PermSize=256m, XX:MaxPermSize=256m
>
> - I work on a Windows XP machine with 2G RAM and a 'Intel Core 2 Duo'
> with 2.66GHz.
>
>
> Thanks for your help.
>
> Regards - Franz

You could try to increase the default index cache size (in the
preferences). I would also omit the XX:PermSize=256m. It wastes a lot of
memory.

HTH
--
Anton Leherbauer
Wind River Systems, Austria
CDT Committer - http://www.eclipse.org/cdt
Re: Hint to improve CDT Content Assist performance? [message #235084 is a reply to message #234681] Tue, 23 June 2009 10:52 Go to previous message
Franz is currently offline FranzFriend
Messages: 2
Registered: July 2009
Junior Member
Anton Leherbauer wrote:
> You could try to increase the default index cache size (in the
> preferences). I would also omit the XX:PermSize=256m. It wastes a lot of
> memory.

Thank you for your hints. I will try them.

I have also noticed that the CDT indexer is running quite often and
slowing down the hole system.
I found the following to flags in the Indexer Preferences:

* Automatically update the index.
* Update index immediately after every file-change

It seems that if I disable the second flag the indexer isn't running so
often. But does anybody know when it will run now, because it should still
update it automatically?

- Regards
Franz
Previous Topic:looking for an example on how to use externelSettingsProvider
Next Topic:Debugger: Specifying command line arguments
Goto Forum:
  


Current Time: Fri Apr 26 08:08:52 GMT 2024

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

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

Back to the top