如何加快eclipse项目“刷新” [英] How to speed up the eclipse project 'refresh'

查看:532
本文介绍了如何加快eclipse项目“刷新”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个相当大的PHP代码库(10k文件),我在Windows机器上使用Eclipse 3.4 / PDT 2,而文件托管在Debian文件服务器上。我通过窗口上的映射驱动器连接。



尽管有一个1bit的以太网连接,但是进行eclipse项目刷新是相当缓慢的。最长5分钟在这种情况下,我被阻止工作。



这通常不会是这样的问题,因为Eclipse理论上不应该经常进行全面刷新。然而,我使用subclipse插件,每次完成切换/更新时都会触发完全刷新。



我的预感是,进程中最慢的部分是eclipse检查10k文件逐个更改samba。



代码库中有大量的文件,我永远不需要从eclipse访问,所以我不需要它来检查它们。但是我不知道如何防止这样做。我试过标记他们'派生'。这防止它们被包含在构建过​​程中。但是似乎加速了刷新过程。似乎Eclipse仍然检查他们的更改状态。



我还从PDT的构建路径中删除了不需要的文件夹。这样做会加快建筑工作空间的过程,但是再次加快了建筑之前的实际刷新速度(这是最需要花费大部分时间的)。

解决方案

感谢大家的建议。基本上,JW在正确的轨道上。为此,我发现一个名为FileSync的插件:
http://andrei.gmxhome.de/filesync/



这将自动将更改的文件复制到网络共享。工作梦幻般现在我可以在几秒钟内从Eclipse中完成更新/切换/刷新。


I have a fairly large PHP codebase (10k files) that I work with using Eclipse 3.4/PDT 2 on a windows machine, while the files are hosted on a Debian fileserver. I connect via a mapped drive on windows.

Despite having a 1gbit ethernet connection, doing an eclipse project refresh is quite slow. Up to 5 mins. And I am blocked from working while this happens.

This normally wouldn't be such a problem since Eclipse theoretically shouldn't have to do a full refresh very often. However I use the subclipse plugin also which triggers a full refresh each time it completes a switch/update.

My hunch is that the slowest part of the process is eclipse checking the 10k files one by one for changes over samba.

There is a large number of files in the codebase that I would never need to access from eclipse, so I don't need it to check them at all. However I can't figure out how to prevent it from doing so. I have tried marking them 'derived'. This prevents them from being included in the build process etc. But it doesn't seem to speed up the refresh process at all. It seems that Eclipse still checks their changed status.

I've also removed the unneeded folders from PDT's 'build path'. This does speed up the 'building workspace' process but again it doesn't speed up the actual refresh that precedes building (and which is what takes the most time).

解决方案

Thanks all for your suggestions. Basically, JW was on the right track. Work locally.

To that end, I discovered a plugin called FileSync: http://andrei.gmxhome.de/filesync/

This automatically copies the changed files to the network share. Works fantastically. I can now do a complete update/switch/refresh from within Eclipse in a couple of seconds.

这篇关于如何加快eclipse项目“刷新”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆