php 在 Eclipse PDT 中禁用或加速 DLTK 索引?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/3414592/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Disable or speed up DLTK indexing in Eclipse PDT?
提问by Mateng
I am using Eclipse PDT Helios with Aptana Studio on Windows XP SP3.
Very often, my workflow is interrupted because Eclipse starts a DLTK
indexing process that lasts 30 seconds, sometimes up to 2 minutes - which is annoying.
我在 Windows XP SP3 上将 Eclipse PDT Helios 与 Aptana Studio 一起使用。很多时候,我的工作流程被中断,因为 Eclipse 启动了一个DLTK
持续 30 秒的索引过程,有时长达 2 分钟 - 这很烦人。
I wonder if there is any way to:
我想知道是否有任何方法:
- Either turn that off or
- Run the DLTK indexing process less frequently.
- 要么关掉它,要么
- 降低运行 DLTK 索引过程的频率。
I didn't find any possibility to change regarding parameters in Window > Preferences.
我没有发现任何更改窗口 > 首选项中参数的可能性。
回答by zvikico
PDT 2.2 (the one in Helios) is using a local database engine, H2, to store information. I wrote a post highlighting how to improve the performance of the new indexer.
PDT 2.2(Helios 中的那个)使用本地数据库引擎 H2 来存储信息。我写了一篇文章重点介绍了如何提高新索引器的性能。
There might be another way, but it's requires hacking and I haven't tried it myself since the early builds of PDT 2.2 so YMMV: use a newer version of H2. You see, PDT 2.2 uses H2 version 1.1.117. The current version is 1.2.140. Basically, it involves downloading a newer version from the h2 site, and replacing the current H2 JAR in the plugins folder with this Jar. I should really write a blog post about it. I just need to find some time...
可能还有另一种方法,但它需要黑客攻击,自从 PDT 2.2 的早期版本以来,我自己还没有尝试过,所以 YMMV:使用较新版本的 H2。你看,PDT 2.2 使用 H2 版本 1.1.117。当前版本是 1.2.140。基本上,它涉及从h2 站点下载更新的版本,并用这个 Jar 替换 plugins 文件夹中的当前 H2 JAR。我真的应该写一篇关于它的博客文章。我只需要找个时间...
回答by MarkOfSine
I also have/had this problem and turned off "Build Automatically" in the projects menu. Which seems to have resolved the problem for me...
我也有/遇到过这个问题,并在项目菜单中关闭了“自动构建”。这似乎解决了我的问题......
So question is, and please excuse my ignorance here... but what is "Build" required for in PHP world.
所以问题是,请原谅我的无知……但是在 PHP 世界中需要什么“构建”。
回答by VonC
There are some issue currently being worked out with the dltk.core.index
process:
目前正在解决该dltk.core.index
过程中的一些问题:
See bug 319130from yesterday (August 4th).
请参阅昨天(8 月 4 日)的错误 319130。