vscode-comment-translate icon indicating copy to clipboard operation
vscode-comment-translate copied to clipboard

CPU负载

Open Shu-Ying opened this issue 3 years ago • 8 comments

目前这个扩展有着过高的CPU负载,这会导致我的骨架和提示框无法显示

Shu-Ying avatar Jul 18 '22 20:07 Shu-Ying

补充一下我的VCode版本是1.69.1,很遗憾的是这个BUG是我在1.69.0发现的,当时我还以为是VCode的更新BUG就没在意。直到推出了1.69.1之后我才开始检索问题

Shu-Ying avatar Jul 18 '22 20:07 Shu-Ying

麻烦提供下更多信息。在什么场景下cpu负载过高?

intellism avatar Jul 19 '22 05:07 intellism

麻烦提供下更多信息。在什么场景下cpu负载过高?

目前有三种:1.每次打开VCode 2.首次激活扩展 3.新的翻译(是新的,旧的似乎有翻译记录)

Shu-Ying avatar Jul 19 '22 06:07 Shu-Ying

是cpu负载高,还是启动时翻译有延迟? 翻译插件不是必须的,所以启动时间比较靠后。 #94

intellism avatar Jul 19 '22 07:07 intellism

是cpu负载率高,还是启动时翻译有延迟? 翻译插件不是必须的,所以启动时间比较靠后。 #94 是异常高,我正常的占用率为10%,一旦翻译或者首次启动就会到达40%。当然我觉得这不是问题,主要只要翻译之后,就会把提示框和骨架卡没,必须要等一阵子才会恢复提示框和骨架

Shu-Ying avatar Jul 20 '22 09:07 Shu-Ying

"只要翻译之后,就会把提示框和骨架卡没,必须要等一阵子才会恢复提示框和骨架"

这个是什么意思?

麻烦提供下更多信息。

intellism avatar Jul 20 '22 12:07 intellism

"只要翻译之后,就会把提示框和骨架卡没,必须要等一阵子才会恢复提示框和骨架"

这个是什么意思?

麻烦提供下更多信息。

我录制个视频,大佬过目

链接:https://pan.baidu.com/s/167fsvGx4JNikfCeQwtAjuA?pwd=5h9a 提取码:5h9a

Shu-Ying avatar Jul 20 '22 14:07 Shu-Ying

谢谢反馈,看了视频发现问题了。之前没考虑过源文件超多行的情况,为了分析注释,使用了textmate,对超多行的处理没做优化,后面看看做一些限制和优化。

intellism avatar Jul 25 '22 03:07 intellism