如何在大型 Rails 项目上加速 TextMate?
当打开大型项目时,有什么方法可以提高 TextMate 的性能吗?使其成为活动应用程序每次大约需要 10 秒。
Is there any way to improve the performance of TextMate when a large project is open? Making it the active app is taking about 10 second each and every time.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
为了加快打开项目(以及在其中搜索)的速度,您可以考虑仅将您实际工作的文件包含到项目中。所有最终可能位于源代码树中(或符号链接到源代码树中)的外部库(您不打算修改)都可以通过将其文件夹名称放入项目中来排除。 “文件夹信息”表单中的“文件夹模式”正则表达式,可以通过在 TextMate 中选择顶部文件夹并按 Cmd+I 打开。
请注意,完成此操作后,您应该执行 File ->保存项目,然后仅通过实际打开 .tmproject 文件在 TextMate 中打开项目:
通过在 TextMate 中打开整个文件夹来
PS:使用符号链接将外部库链接到源代码树本身就是一种方便的技术,因为这些可能是单独的 TextMate 项目。
To speedup opening the project (and also searching in it), you may consider to only include into the project the files you're actually working at. All the external libraries that may eventually be in the source tree (or sym-linked into that), which you don't plan to modify, may be excluded from the project by putting their folder names into the "Folder Pattern" regular expression in the "Folder Information" form, which can be opened by selecting the top-folder in the TextMate and pressing Cmd+I.
Note, that after doing that, you should do File -> Save Project, and then only open your project in TextMate by actually opening the .tmproject-file:
not by opening the whole folder in TextMate like this:
P.S.: Using sym-links for linking external libraries into your source tree is by itself a handy technique, as those may be separate TextMate projects to work on.
每次切换到 TextMate 时,它都会
统计
项目中的所有文件。您可以使用 ReMate 插件抑制此行为(有选择地针对每个项目或每个域)。ReMate
Every time you switch to TextMate, it
stats
all of the files in your project. You can inhibit this behavior (selectively on a per-project or per-domain basis) with the ReMate plugin.ReMate
你的硬件规格是什么?对我来说听起来像是内存问题。
您是否考虑过使用不同的应用程序?我已经使用 RubyMine 一段时间了,不得不说我真的很喜欢它。
我的应用程序相当大(60 个左右的对象,20 个插件等),并且在笔记本电脑规格“OK”的情况下,它运行得很好。加上它提供的所有其他功能,79 美元的许可证非常值得。
What are you hardware specs? Sounds like a RAM issue to me.
Have you considered using a different application? I have been using RubyMine for some time now and have to say I really enjoy it.
My application is rather large (60ish objects, 20 some plugins, etc...) and with "OK" laptop specs, it runs pretty well. That, and all of the other functionality that it provides makes it well worth the $79 license.