Daniel
|
08d283d3e1
|
🎨 Clean code https://github.com/siyuan-note/siyuan/pull/16647
Signed-off-by: Daniel <845765@qq.com>
|
2025-12-22 17:41:47 +08:00 |
|
Jeffrey Chen
|
64514b4fab
|
⚡ Improve the performance of the getCloudUser interface to resolve the lag issue during startup (#16647)
问题:
- /api/setting/getCloudUser 接口在启动时卡顿数百毫秒
- 根本原因:GetUser()、SetUser() 和 Conf.Save() 使用同一个锁,存在锁竞争
解决方案:
1. 将 GetUser() 改为使用读锁(RLock),允许并发读取
2. 将用户数据与配置数据分离,使用独立的 userLock 锁
- m 锁:保护配置数据的读写(Conf.Save() 使用)
- userLock 锁:保护用户数据的读写(GetUser() 和 SetUser() 使用)
3. 优化 RefreshUser 函数,先尝试从内存获取用户,避免不必要的文件读取
相关文件:
- kernel/model/conf.go: 添加 userLock,修改 GetUser/SetUser 使用独立锁
- kernel/model/cloud_service.go: 优化 RefreshUser 逻辑
|
2025-12-22 17:30:40 +08:00 |
|
Daniel
|
c07efea8de
|
🎨 Improve callout block https://github.com/siyuan-note/siyuan/issues/16607
Signed-off-by: Daniel <845765@qq.com>
|
2025-12-20 12:31:28 +08:00 |
|
Daniel
|
85934230ac
|
🎨 Improve the marketplace refresh timer https://github.com/siyuan-note/siyuan/issues/14685
|
2025-04-23 10:34:47 +08:00 |
|
Daniel
|
7a2fded724
|
🎨 Clean code
|
2025-04-18 10:36:14 +08:00 |
|
Daniel
|
c43da2fcaa
|
🎨 Hide network img icon in the inbox https://github.com/siyuan-note/siyuan/issues/14084
|
2025-02-15 20:48:08 +08:00 |
|
Daniel
|
7446599c0f
|
🎨 Remove Unicode PUA characters https://github.com/siyuan-note/siyuan/issues/13291
|
2024-11-27 20:15:37 +08:00 |
|
Daniel
|
09eec52a02
|
♻️ Implement some delayed kernel events using task queues https://github.com/siyuan-note/siyuan/issues/12393
|
2024-09-05 18:07:04 +08:00 |
|
Daniel
|
ffe737f55c
|
♻️ Implement some delayed kernel events using task queues https://github.com/siyuan-note/siyuan/issues/12393
|
2024-09-05 17:07:13 +08:00 |
|
Oleksandr Redko
|
b100721fee
|
♻️ Refactor Go to err != nil, err == nil (#12385)
|
2024-09-04 09:40:50 +08:00 |
|
Daniel
|
59af2466ce
|
🐛 Fix NPE https://ld246.com/article/1716477105045
|
2024-05-23 23:41:42 +08:00 |
|
Daniel
|
da59fa2afa
|
⚡ Improve marketplace loading performance Fix https://github.com/siyuan-note/siyuan/issues/10973
|
2024-04-12 09:15:03 +08:00 |
|
Daniel
|
4033b15ee8
|
🎨 Improve notification https://ld246.com/article/1712750404715
|
2024-04-10 21:32:08 +08:00 |
|
Daniel
|
1d54de679f
|
🎨 Improve kernel stability by eliminating some data races https://github.com/siyuan-note/siyuan/issues/9842
|
2023-12-08 21:47:15 +08:00 |
|
Daniel
|
a1827d1f50
|
🎨 Cloud inbox support preview audio and video https://github.com/siyuan-note/siyuan/issues/9780
|
2023-11-29 23:08:48 +08:00 |
|
Daniel
|
3d8d1ef544
|
🎨 Cloud inbox support preview audio and video https://github.com/siyuan-note/siyuan/issues/9780
|
2023-11-29 23:08:48 +08:00 |
|
Daniel
|
6ccf76e6cd
|
🎨 Cloud inbox support preview audio and video https://github.com/siyuan-note/siyuan/issues/9780
|
2023-11-29 23:08:47 +08:00 |
|
Daniel
|
455d5c3908
|
🎨 Update av export
|
2023-09-26 10:33:56 +08:00 |
|
Daniel
|
10ac5e557d
|
🎨 Update av export
|
2023-09-26 10:30:08 +08:00 |
|
Daniel
|
1d2eddc3da
|
🎨 Sign in to use S3/WebDAV data sync https://github.com/siyuan-note/siyuan/issues/8779
|
2023-07-19 13:13:54 +08:00 |
|