AFFiNE icon indicating copy to clipboard operation
AFFiNE copied to clipboard

​文章写长了之后同步会感觉卡卡的

Open Cloudssss opened this issue 1 year ago • 8 comments

Description

感觉是文章写长了之后,每次输入一两个字,会自动同步云端,因为文章过长导致同步可能得花个零点几秒,然后导致输入的时候有一些卡顿

当然也有可能是其他问题造成的卡顿,我也不确定

Use case

在Linux和Windows的客户端上都有这个问题

Anything else?

No response

Are you willing to submit a PR?

  • [ ] Yes I'd like to help by submitting a PR!

Cloudssss avatar Nov 08 '24 13:11 Cloudssss

Translation:

I feel that after the article is written for a long time, each time one or two words are entered, it will be automatically synchronized to the cloud. Because the article is too long, the synchronization may take a few seconds, and then there will be some stuttering when entering.

Of course, there may be stuttering caused by other problems, and I'm not sure.

earmer avatar Nov 10 '24 10:11 earmer

@Cloudssss 也是遇到了

liduchuan avatar Nov 14 '24 03:11 liduchuan

0.18 更新了,还有明显卡顿的感觉吗

zanwei avatar Nov 15 '24 04:11 zanwei

0.18 更新了,还有明显卡顿的感觉吗

@zanwei 还是有,状况好像比上个版本好一些,不过经过我刚才又测试了一下,我发现是我文章里引用了无界模式的frame后会卡顿 https://github.com/user-attachments/assets/b31a3106-ee27-461d-a7d2-55d135ee55fa https://github.com/user-attachments/assets/c5c6ad46-34ef-47f2-80b3-78c409e3e9c4 具体表现为我输入拼音,按下空格这一瞬间,到文字显示在开头,这点时间有点点卡顿 之前貌似是只要输入都会卡顿,现在好像只会在每一行开头第一次输入的时候卡顿

Cloudssss avatar Nov 16 '24 03:11 Cloudssss

0.18 更新了,还有明显卡顿的感觉吗

@zanwei 还是有,状况好像比上个版本好一些,不过经过我刚才又测试了一下,我发现是我文章里引用了无界模式的frame后会卡顿 https://github.com/user-attachments/assets/b31a3106-ee27-461d-a7d2-55d135ee55fa https://github.com/user-attachments/assets/c5c6ad46-34ef-47f2-80b3-78c409e3e9c4 具体表现为我输入拼音,按下空格这一瞬间,到文字显示在开头,这点时间有点点卡顿 之前貌似是只要输入都会卡顿,现在好像只会在每一行开头第一次输入的时候卡顿

@Cloudssss 方便发一下你的设备配置和系统环境吗👀

zanwei avatar Nov 18 '24 16:11 zanwei

@zanwei 图片 这样行吗

Cloudssss avatar Nov 19 '24 01:11 Cloudssss

@zanwei 刚才又发现frame引用的越多越卡,引用了5个frame后就挺明显了

https://github.com/user-attachments/assets/f5233db5-1ae1-4941-acbe-58280bdab153

不过我把文章里的文字都给删掉之后,只留有几个frame就又不卡了

https://github.com/user-attachments/assets/07ff112f-fe89-470a-bc91-8d75e4195938

总结下来是 文章过长+引用frame 会卡

Cloudssss avatar Nov 19 '24 01:11 Cloudssss

@Cloudssss OK 感谢,我们调查一下

zanwei avatar Nov 20 '24 01:11 zanwei

0.18 更新了,还有明显卡顿的感觉吗

还是卡顿明显,我是在一个页面里的长文下复制粘贴出现的。长度大小不好给到反馈,简单说是我过去3个月每天的工作日志。建议在页面加一个显示文件大小的字段,我这边好给到更具体的信息反馈。

AFFiNE 版本用的桌面端 0.19.5,系统信息:

CleanShot 2025-01-07 at 13 54 28@2x

liduchuan avatar Jan 07 '25 06:01 liduchuan

0.18 更新了,还有明显卡顿的感觉吗

还是卡顿明显,我是在一个页面里的长文下复制粘贴出现的。长度大小不好给到反馈,简单说是我过去3个月每天的工作日志。建议在页面加一个显示文件大小的字段,我这边好给到更具体的信息反馈。

AFFiNE 版本用的桌面端 0.19.5,系统信息:

CleanShot 2025-01-07 at 13 54 28@2x

导出成 MD 格式的大小有 16.5KB,主要是文本内容,只有一张图在里面

liduchuan avatar Jan 15 '25 20:01 liduchuan

0.25依然卡顿明显 和用户Cloudssss的情况一样 配置信息如图

Image

Dr1mH4X avatar Oct 15 '25 03:10 Dr1mH4X