当我在编写代码或纯文本时使用Sublime和sublimecodeintel包,它使用的是大约1.2GB的内存和0%的CPU。我观察了内存使用的行为,似乎每次输入一个单词时,内存使用量都会跳转到1MB。如果设置"codeintel": false,,内存使用率将恢复正常。对我来说,这似乎是个内存泄漏问题。我有办法解决这个问题吗?
以下是我为sublimecodeintel设置的设置(我使用默认设置)
/*
SublimeCodeIntel default settings
*/
{
/*
Sets the mode in which SublimeCodeIntel runs:
true - Enabled (the default).
false - Disabled.
*/
"codeintel": true,
// An array of language names which are disabled.
"codeintel_disabled_languages":
[
],
/*
Sets the mode in which SublimeCodeIntel's live autocomplete runs:
true - Autocomplete popups as you type (the default).
false - Autocomplete popups only when you request it.
*/
"codeintel_live": true,
// An array of language names to disable.
"codeintel_live_disabled_languages":
[
],
/*
Maps syntax names to languages. This allows variations on a syntax
(for example "Python (Django)") to be used. The key is
the base filename of the .tmLanguage syntax files, and the value
is the syntax it maps to.
*/
"codeintel_syntax_map":
{
"Python Django": "Python"
}
}发布于 2013-03-09 05:16:55
最简单的解决方法是不幸地设置"codeintel":false,。如果您转到Github并检查这些问题,您将看到许多人在性能方面存在问题,特别是在大型项目上。这个插件最初是从开放式Komodo编辑器移植到崇高的,我认为在翻译中有些性能下降了。在进行小型项目时,我对它没有任何问题,但是如果我开始使用IPython和pylab在SublimeREPL中(它会导入很大一部分numpy和matplotlib等),那么性能就会下降到爬行速度--这是在一个具有20‘m内存的四核3.4 GHz i7上,所以我不需要电力。
不幸的是,似乎没有任何性能问题得到了响应,更不用说在代码中解决了,所以如果有人愿意分析并修复它,我们将非常感激!
https://stackoverflow.com/questions/15306223
复制相似问题