rime / squirrel

【鼠鬚管】Rime for macOS
https://rime.im
GNU General Public License v3.0
4.54k stars 413 forks source link

Squirrel 0.18 使用雾凇拼音時内存佔用大 #895

Closed J-StrawHat closed 1 month ago

J-StrawHat commented 2 months ago

这几天内存占用一直在涨,现在已经升到 420 多 MB了。

输入方案为雾凇拼音, 可能是 Lua 的原因

Attiv commented 2 months ago

ReverseDb 换成 ReverseLookup(dict_name) 试试

J-StrawHat commented 2 months ago

搜索了一下,雾凇拼音的 Lua 中使用的是 ReverseLookup

ps. 现在内存占用已经接近 500 MB 了

LEOYoon-Tsaw commented 2 months ago

過了3天才漲了80MB?這怕不叫內存泄露

J-StrawHat commented 2 months ago

之前的版本应该不会涨到这么多

mirtlecn commented 2 months ago

@J-StrawHat

你用的是 rime_ice 里面的全拼吗?

J-StrawHat commented 2 months ago

使用的是双拼

Muscleape commented 2 months ago
image
ksqsf commented 2 months ago

可嘗試使用 Instruments 中的 Leaks 工具測試(須從 Running Applications 列表中選取 Squirrel)。我使用的是某個 custom build,無法代表 release 版的情況,但是的確發現了 leak。

image
ksqsf commented 2 months ago

I believe this could be fixed by #898 .

mirtlecn commented 1 month ago

@J-StrawHat 麻烦再测试下,CI 版本还有问题吗?

mirtlecn commented 1 month ago

我自己用 CI 版本试了下,好像没看到什么特别明显的内存问题。

1716690587.webm