Skip to content

Improve open doc performance #8248

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
3 tasks done
gdy106 opened this issue May 12, 2023 · 7 comments
Closed
3 tasks done

Improve open doc performance #8248

gdy106 opened this issue May 12, 2023 · 7 comments
Assignees
Milestone

Comments

@gdy106
Copy link

gdy106 commented May 12, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Can the issue be reproduced with the default theme (daylight/midnight)?

  • I was able to reproduce the issue with the default theme

Could the issue be due to extensions?

  • I've ruled out the possibility that the extension is causing the problem.

Describe the problem

无论是快捷键F5刷新还是右上菜单点击刷新,都会跳转到标题,然后需要等待很长时间才能回到原来焦点的位置。
我测试的文档较大,但在小文档中的区别只是延迟的时间短了,但是必然会跳转回标题再重新定位到焦点位置。

Expected result

预期成果:刷新后不跳转到标题位置,在焦点位置刷新。

Screenshot or screen recording presentation

2023-05-13-03-45-35.mp4
2023-05-13-03-51-29.mp4

Version environment

- Version: 2.8.8dev2
- Operating System: win10 22H2
- Browser (if used):思源客户端

Log file

siyuan.log

More information

No response

@Vanessa219
Copy link
Member

第一个慢的也太夸张了,你看一下网络加载时间。网络有没有开代理?
出现标题跳转是正文还没加载出来,这个后面可以优化一下。

QQ20230513-105412-HD.mp4

@gdy106
Copy link
Author

gdy106 commented May 13, 2023

第一个慢的也太夸张了,你看一下网络加载时间。网络有没有开代理? 出现标题跳转是正文还没加载出来,这个后面可以优化一下。

QQ20230513-105412-HD.mp4

这个工作空间我没有开启云端同步,是纯本地的。也没有开启任何代码片段,唯一有一个列出子文档的挂件,应该也不影响。
所以应该不是网络因素影响?
电脑有开代理但是这个工作空间没有开启代理。
昨天思源和电脑系统都重启过,依然复现。但是刚才我再试了一下,延迟在3秒之内了。原因不明。

2023-05-13-12-01-58.mp4

@88250
Copy link
Member

88250 commented May 13, 2023

电脑开了全局代理的话会有影响,关闭再试试。

@gdy106
Copy link
Author

gdy106 commented May 13, 2023

电脑开了全局代理的话会有影响,关闭再试试。

我检查了一下代理,我开的是规则代理,不是全局。我改到直连模式重新测试了一下,然后又在思源里配置好代理端口,两者结果和之前没有明显区别,都是要卡一下,不过没有出现昨天那样刷新后要等待接近一分钟的情况。

2023-05-13-12-40-29.mp4

Snipaste_2023-05-13_12-43-02

@88250
Copy link
Member

88250 commented May 13, 2023

那可能还是代理相关的配置问题,建议完全不要配置代理再试试。

我先关闭了,如果还有问题请继续跟帖,谢谢 🙏

@88250 88250 closed this as completed May 13, 2023
@gdy106
Copy link
Author

gdy106 commented May 13, 2023

那可能还是代理相关的配置问题,建议完全不要配置代理再试试。

我先关闭了,如果还有问题请继续跟帖,谢谢 🙏

我不是很明白为什么我没有开启云端还和代理有关系,总之完全关闭任何代理软件后的网络情况截图和配置好网络代理的截图我都截屏了。都是会卡一下到标题然后再切回焦点。
完全关闭代理软件情况如图:
Snipaste_2023-05-13_20-09-51
Snipaste_2023-05-13_20-11-08

正确配置代理后网络情况如图:
Snipaste_2023-05-13_20-14-13
Snipaste_2023-05-13_20-14-27

目前都没有复现昨天那样卡一分钟的情况。

@88250
Copy link
Member

88250 commented May 13, 2023

哦,那我理解错了,一分钟那个应该是网络代理的问题。

目前还是比较慢的问题正在优化,谢谢。

@88250 88250 reopened this May 13, 2023
@88250 88250 changed the title 2.8.8dev2 刷新后跳转到标题位置,延迟很长时间后页面才能回到焦点。 Improve open doc performance May 13, 2023
@88250 88250 added this to the 2.8.8 milestone May 13, 2023
Vanessa219 added a commit that referenced this issue May 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants