Eclipse CDT 5.0.1(Ganymede)慢速索引器问题

时间:2023-01-15 13:27:47

I am trying to use Ganymede CDT to index our large codebase. It is painfully slow, can take a whole night to index the C++ files. Same project takes only 5 seconds to index with exuberant ctags 5.7.

我正在尝试使用Ganymede CDT来索引我们的大型代码库。它很慢,可能需要一整晚来索引C ++文件。同一个项目只用5秒就可以用丰富的ctags 5.7进行索引。

Is there some way to find what the root of the problem is and to speed it up? Maybe turn on logging in CDT, or some obscure option somewhere that I missed?

有没有办法找到问题的根源并加快速度?也许打开CDT登录,或者某个我错过的某个模糊选项?

3 个解决方案

#1


1  

If you use the "full indexer" this would not surprise me. I'm using the "fast indexer", it is very fast and works pretty well (even with wxWidgets).

如果你使用“完整索引器”,这不会让我感到惊讶。我正在使用“快速索引器”,它非常快并且运行良好(即使使用wxWidgets)。

You can change your indexer settings in Window->Preferences->C/C++->Indexer.

您可以在Window-> Preferences-> C / C ++ - > Indexer中更改索引器设置。

#2


0  

Do you know if this is a regression from 5.0.0? In that case you should definitely open a bugreport.

你知道这是5.0.0的回归吗?在这种情况下,你绝对应该打开一个bug报告。

Is all of your code in the same project? That may have an impact.

您的所有代码都在同一个项目中吗?这可能会产生影响。

#3


0  

We have a similar problem with Eclipse under Windows; in our case, it is because of an old version of cygwin.

我们在Windows下遇到类似Eclipse的问题;在我们的例子中,这是因为旧版本的cygwin。

To know if you have the same issue, just check with Process Explorer if Eclipse spawns cygpath.exe, and it does not complete in a reasonable time.
In case this is the cause of the problem, then it is enough to just put the last version of cygpath.exe and cygwin1.dll in eclipse directory, and then you are done.

要知道您是否遇到相同的问题,只需检查Process Explorer是否会生成cygpath.exe,并且在合理的时间内无法完成。如果这是问题的原因,那么只需将最新版本的cygpath.exe和cygwin1.dll放在eclipse目录中,然后就完成了。

Good luck!

#1


1  

If you use the "full indexer" this would not surprise me. I'm using the "fast indexer", it is very fast and works pretty well (even with wxWidgets).

如果你使用“完整索引器”,这不会让我感到惊讶。我正在使用“快速索引器”,它非常快并且运行良好(即使使用wxWidgets)。

You can change your indexer settings in Window->Preferences->C/C++->Indexer.

您可以在Window-> Preferences-> C / C ++ - > Indexer中更改索引器设置。

#2


0  

Do you know if this is a regression from 5.0.0? In that case you should definitely open a bugreport.

你知道这是5.0.0的回归吗?在这种情况下,你绝对应该打开一个bug报告。

Is all of your code in the same project? That may have an impact.

您的所有代码都在同一个项目中吗?这可能会产生影响。

#3


0  

We have a similar problem with Eclipse under Windows; in our case, it is because of an old version of cygwin.

我们在Windows下遇到类似Eclipse的问题;在我们的例子中,这是因为旧版本的cygwin。

To know if you have the same issue, just check with Process Explorer if Eclipse spawns cygpath.exe, and it does not complete in a reasonable time.
In case this is the cause of the problem, then it is enough to just put the last version of cygpath.exe and cygwin1.dll in eclipse directory, and then you are done.

要知道您是否遇到相同的问题,只需检查Process Explorer是否会生成cygpath.exe,并且在合理的时间内无法完成。如果这是问题的原因,那么只需将最新版本的cygpath.exe和cygwin1.dll放在eclipse目录中,然后就完成了。

Good luck!