📝 Add Performance Optimization chapter to user guide https://github.com/siyuan-note/siyuan/issues/7889

This commit is contained in:
Liang Ding 2023-04-05 17:28:56 +08:00
parent 66bc15b1da
commit 5e7dd355d7
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
6 changed files with 1817 additions and 9 deletions

View file

@ -1,6 +1,6 @@
{
"20200923234011-ieuun1p": 1,
"20200923234602-gy54e67": 4,
"20200923234602-gy54e67": 5,
"20200923234731-h3zkwm2": 2,
"20200924093441-ft2rhps": 1,
"20200924095938-a9p5450": 2,
@ -17,7 +17,7 @@
"20200924101256-f8b1sbi": 3,
"20201004194026-s8h2cog": 17,
"20201117112518-dott91x": 6,
"20201121224345-rc27qvo": 5,
"20201121224345-rc27qvo": 6,
"20201204184532-3qm9l8n": 9,
"20201210233038-3xr19g5": 5,
"20201222100222-q47d64s": 2,
@ -49,5 +49,6 @@
"20221223221636-ms2b4w9": 14,
"20230104152135-1iei0xa": 21,
"20230106104821-9nfphwm": 1,
"20230304000547-ibldj1z": 15
"20230304000547-ibldj1z": 15,
"20230405172236-pg3l9eu": 4
}

View file

@ -0,0 +1,604 @@
{
"ID": "20230405172236-pg3l9eu",
"Spec": "1",
"Type": "NodeDocument",
"Properties": {
"icon": "1f680",
"id": "20230405172236-pg3l9eu",
"title": "Performance Optimization",
"updated": "20230405172644"
},
"Children": [
{
"ID": "20230405172238-x56gmi0",
"Type": "NodeHeading",
"HeadingLevel": 2,
"Properties": {
"id": "20230405172238-x56gmi0",
"updated": "20230405172238"
},
"Children": [
{
"Type": "NodeText",
"Data": "Overview"
}
]
},
{
"ID": "20230405172238-38se2u5",
"Type": "NodeParagraph",
"Properties": {
"id": "20230405172238-38se2u5",
"updated": "20230405172238"
},
"Children": [
{
"Type": "NodeText",
"Data": "The performance on different hardware configurations and different operating system platforms is different. In addition, as the data increases, performance degradation is unavoidable. So we may need to change the way of use and adjust some configuration items to improve performance for a smoother experience."
}
]
},
{
"ID": "20230405172238-lknsx9c",
"Type": "NodeHeading",
"HeadingLevel": 3,
"Properties": {
"id": "20230405172238-lknsx9c",
"updated": "20230405172238"
},
"Children": [
{
"Type": "NodeText",
"Data": "Overall Performance"
}
]
},
{
"ID": "20230405172238-3rel2m1",
"Type": "NodeList",
"ListData": {},
"Properties": {
"id": "20230405172238-3rel2m1",
"updated": "20230405172414"
},
"Children": [
{
"ID": "20230405172238-3vv1mxu",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20230405172238-3vv1mxu",
"updated": "20230405172238"
},
"Children": [
{
"ID": "20230405172238-pew1c0t",
"Type": "NodeParagraph",
"Properties": {
"id": "20230405172238-pew1c0t",
"updated": "20230405172238"
},
"Children": [
{
"Type": "NodeText",
"Data": "Number of content blocks: The number of content blocks has a large impact on performance, such as expanding the document tree, searching, and writing data. But don't worry too much, usually the number of content blocks in the order of millions will not have much impact, unless the size of each block is large"
}
]
}
]
},
{
"ID": "20230405172238-r7jjtjq",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20230405172238-r7jjtjq",
"updated": "20230405172238"
},
"Children": [
{
"ID": "20230405172238-ysivby7",
"Type": "NodeParagraph",
"Properties": {
"id": "20230405172238-ysivby7",
"updated": "20230405172238"
},
"Children": [
{
"Type": "NodeText",
"Data": "System environment: the current load of the operating system will affect the overall performance"
}
]
}
]
},
{
"ID": "20230405172238-ylrmtl8",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20230405172238-ylrmtl8",
"updated": "20230405172414"
},
"Children": [
{
"ID": "20230405172238-s9o5bs5",
"Type": "NodeParagraph",
"Properties": {
"id": "20230405172238-s9o5bs5",
"updated": "20230405172414"
},
"Children": [
{
"Type": "NodeText",
"Data": "Network environment: The network quality will affect the request response time when using "
},
{
"Type": "NodeTextMark",
"TextMarkType": "kbd",
"TextMarkTextContent": "Network serving"
},
{
"Type": "NodeText",
"Data": ""
}
]
}
]
}
]
},
{
"ID": "20230405172238-vcy1xy7",
"Type": "NodeParagraph",
"Properties": {
"id": "20230405172238-vcy1xy7",
"updated": "20230405172238"
},
"Children": [
{
"Type": "NodeText",
"Data": "Optimization suggestions:"
}
]
},
{
"ID": "20230405172238-rcjs6d7",
"Type": "NodeList",
"ListData": {},
"Properties": {
"id": "20230405172238-rcjs6d7",
"updated": "20230405172644"
},
"Children": [
{
"ID": "20230405172238-ompk0nl",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20230405172238-ompk0nl",
"updated": "20230405172238"
},
"Children": [
{
"ID": "20230405172238-oi6g676",
"Type": "NodeParagraph",
"Properties": {
"id": "20230405172238-oi6g676",
"updated": "20230405172238"
},
"Children": [
{
"Type": "NodeText",
"Data": "Put infrequently used documents or clipped documents separately into "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "Archive Notebook"
},
{
"Type": "NodeText",
"Data": " or "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "Clipped Notebook"
},
{
"Type": "NodeText",
"Data": ", after closing it, the number of database indexes will be reduced to improve performance"
}
]
}
]
},
{
"ID": "20230405172238-vwfpckn",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20230405172238-vwfpckn",
"updated": "20230405172439"
},
"Children": [
{
"ID": "20230405172238-ppcwhih",
"Type": "NodeParagraph",
"Properties": {
"id": "20230405172238-ppcwhih",
"updated": "20230405172439"
},
"Children": [
{
"Type": "NodeText",
"Data": "Decrease "
},
{
"Type": "NodeTextMark",
"TextMarkType": "kbd",
"TextMarkTextContent": "The number of search results displayed"
},
{
"Type": "NodeText",
"Data": ", we will monitor the performance of the search request response time, if the response time exceeds the threshold, a pop-up will prompt the user to decrease the configuration item"
}
]
},
{
"ID": "20230405172238-0dl0a2a",
"Type": "NodeParagraph",
"Properties": {
"id": "20230405172238-0dl0a2a",
"updated": "20230405172238"
},
"Children": [
{
"Type": "NodeText",
"Data": "The performance monitoring threshold can be set through the environment variable "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "SIYUAN_PERFORMANCE_TIMING"
},
{
"Type": "NodeText",
"Data": ", in milliseconds, and the default is 15000, which is 15 seconds"
}
]
}
]
},
{
"ID": "20230405172238-vusmko3",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20230405172238-vusmko3",
"updated": "20230405172238"
},
"Children": [
{
"ID": "20230405172238-65wv8v6",
"Type": "NodeParagraph",
"Properties": {
"id": "20230405172238-65wv8v6",
"updated": "20230405172238"
},
"Children": [
{
"Type": "NodeText",
"Data": "Maintain sufficient system resources"
}
]
}
]
},
{
"ID": "20230405172238-pfu7dqm",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20230405172238-pfu7dqm",
"updated": "20230405172644"
},
"Children": [
{
"ID": "20230405172238-rh09qe9",
"Type": "NodeParagraph",
"Properties": {
"id": "20230405172238-rh09qe9",
"updated": "20230405172644"
},
"Children": [
{
"Type": "NodeText",
"Data": "Using a solid-state drive, placing the workspace on a SSD can effectively improve overall performance"
}
]
}
]
},
{
"ID": "20230405172238-aur9ljz",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20230405172238-aur9ljz",
"updated": "20230405172238"
},
"Children": [
{
"ID": "20230405172238-hrrkysd",
"Type": "NodeParagraph",
"Properties": {
"id": "20230405172238-hrrkysd",
"updated": "20230405172238"
},
"Children": [
{
"Type": "NodeText",
"Data": "Upgrade hardware, this is the fastest way to improve performance"
}
]
}
]
}
]
},
{
"ID": "20230405172238-v4hbjbe",
"Type": "NodeHeading",
"HeadingLevel": 3,
"Properties": {
"id": "20230405172238-v4hbjbe",
"updated": "20230405172238"
},
"Children": [
{
"Type": "NodeText",
"Data": "Editor Performance"
}
]
},
{
"ID": "20230405172238-ba6rydi",
"Type": "NodeList",
"ListData": {},
"Properties": {
"id": "20230405172238-ba6rydi",
"updated": "20230405172238"
},
"Children": [
{
"ID": "20230405172238-nxx7ops",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20230405172238-nxx7ops",
"updated": "20230405172238"
},
"Children": [
{
"ID": "20230405172238-8bg5c75",
"Type": "NodeParagraph",
"Properties": {
"id": "20230405172238-8bg5c75",
"updated": "20230405172238"
},
"Children": [
{
"Type": "NodeText",
"Data": "Leaf block size: The size of a single leaf block mainly affects the performance of the editor. If a leaf block contains a large number of characters, the editor may freeze"
}
]
}
]
},
{
"ID": "20230405172238-7vgeyd9",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20230405172238-7vgeyd9",
"updated": "20230405172238"
},
"Children": [
{
"ID": "20230405172238-gyuvf0e",
"Type": "NodeParagraph",
"Properties": {
"id": "20230405172238-gyuvf0e",
"updated": "20230405172238"
},
"Children": [
{
"Type": "NodeText",
"Data": "The number of dynamically loaded blocks: The number of loaded blocks mainly affects the performance of the editor, especially for the case where there are many formula blocks, code blocks, and chart blocks. If more blocks are loaded, the editor may freeze"
}
]
}
]
},
{
"ID": "20230405172238-cukxnf0",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20230405172238-cukxnf0",
"updated": "20230405172238"
},
"Children": [
{
"ID": "20230405172238-ydl6grd",
"Type": "NodeParagraph",
"Properties": {
"id": "20230405172238-ydl6grd",
"updated": "20230405172238"
},
"Children": [
{
"Type": "NodeText",
"Data": "Code block line number: The code block line number mainly affects the performance of the editor. If a code block has a lot of content and the line number display is turned on, the editor may freeze"
}
]
}
]
},
{
"ID": "20230405172238-2jjuvev",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20230405172238-2jjuvev",
"updated": "20230405172238"
},
"Children": [
{
"ID": "20230405172238-qnz5kn9",
"Type": "NodeParagraph",
"Properties": {
"id": "20230405172238-qnz5kn9",
"updated": "20230405172238"
},
"Children": [
{
"Type": "NodeText",
"Data": "Pictures and charts: Pictures and charts mainly affect the performance of the editor. If the document contains a large number of pictures and charts, the editor may freeze"
}
]
}
]
}
]
},
{
"ID": "20230405172238-hw2kzh6",
"Type": "NodeParagraph",
"Properties": {
"id": "20230405172238-hw2kzh6",
"updated": "20230405172238"
},
"Children": [
{
"Type": "NodeText",
"Data": "Optimization suggestions:"
}
]
},
{
"ID": "20230405172238-udux4az",
"Type": "NodeList",
"ListData": {},
"Properties": {
"id": "20230405172238-udux4az",
"updated": "20230405172505"
},
"Children": [
{
"ID": "20230405172238-tknvcie",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20230405172238-tknvcie",
"updated": "20230405172238"
},
"Children": [
{
"ID": "20230405172238-1ahwph8",
"Type": "NodeParagraph",
"Properties": {
"id": "20230405172238-1ahwph8",
"updated": "20230405172238"
},
"Children": [
{
"Type": "NodeText",
"Data": "Avoid using too many soft line breaks, although not using soft line breaks will increase the number of blocks, but using less soft line breaks can reduce the size of paragraph blocks and avoid editor lag"
}
]
}
]
},
{
"ID": "20230405172238-vzn3127",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20230405172238-vzn3127",
"updated": "20230405172505"
},
"Children": [
{
"ID": "20230405172238-jpeu5bm",
"Type": "NodeParagraph",
"Properties": {
"id": "20230405172238-jpeu5bm",
"updated": "20230405172505"
},
"Children": [
{
"Type": "NodeText",
"Data": "Reduce "
},
{
"Type": "NodeTextMark",
"TextMarkType": "kbd",
"TextMarkTextContent": "Number of dynamically loaded blocks"
},
{
"Type": "NodeText",
"Data": ", especially for scenarios with many formula blocks, code blocks or chart blocks"
}
]
}
]
}
]
}
]
}

View file

@ -6,7 +6,7 @@
"20200813093015-u6bopdt": 2,
"20200813125307-pxsjela": 2,
"20200813131152-0wk5akh": 4,
"20200813163359-v04n73b": 4,
"20200813163359-v04n73b": 5,
"20200822191536-rm6hwid": 4,
"20200825162036-4dx365o": 1,
"20200828105441-r76vmu5": 19,
@ -16,7 +16,7 @@
"20200922102318-oz84yu3": 2,
"20201004184819-nj8ibyg": 17,
"20201117101902-2ewjjum": 6,
"20201121212605-9td1a62": 5,
"20201121212605-9td1a62": 6,
"20201204181006-7bkppue": 9,
"20201210103036-1x3vm8t": 5,
"20201222093044-rx4zjoy": 1,
@ -50,5 +50,6 @@
"20221223215557-o6gfsoy": 14,
"20230104144904-39br4c6": 21,
"20230106101434-e6g4av3": 1,
"20230303235619-ex5l63e": 15
"20230303235619-ex5l63e": 15,
"20230405155631-leo4vc6": 4
}

View file

@ -0,0 +1,597 @@
{
"ID": "20230405155631-leo4vc6",
"Spec": "1",
"Type": "NodeDocument",
"Properties": {
"icon": "1f680",
"id": "20230405155631-leo4vc6",
"title": "性能优化",
"updated": "20230405172057"
},
"Children": [
{
"ID": "20230405155631-0xw341e",
"Type": "NodeHeading",
"HeadingLevel": 2,
"Properties": {
"id": "20230405155631-0xw341e",
"updated": "20230405163058"
},
"Children": [
{
"Type": "NodeText",
"Data": "概述"
}
]
},
{
"ID": "20230405155721-ljxfaat",
"Type": "NodeParagraph",
"Properties": {
"id": "20230405155721-ljxfaat",
"updated": "20230405165112"
},
"Children": [
{
"Type": "NodeText",
"Data": "不同硬件配置、不同操作系统平台上性能表现是不一样的。另外,随着数据增多,性能下降无法避免。所以我们可能需要改变使用方式并调整一些配置项来提升性能,以获得更流畅的使用体验。"
}
]
},
{
"ID": "20230405171357-3f1dyix",
"Type": "NodeHeading",
"HeadingLevel": 3,
"Properties": {
"id": "20230405171357-3f1dyix",
"updated": "20230405171401"
},
"Children": [
{
"Type": "NodeText",
"Data": "整体性能"
}
]
},
{
"ID": "20230405161606-12co6vz",
"Type": "NodeList",
"ListData": {},
"Properties": {
"id": "20230405161606-12co6vz",
"updated": "20230405165154"
},
"Children": [
{
"ID": "20230405165154-mwfival",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20230405165154-mwfival",
"updated": "20230405165154"
},
"Children": [
{
"ID": "20230405165154-d502q9w",
"Type": "NodeParagraph",
"Properties": {
"id": "20230405165154-d502q9w",
"updated": "20230405165259"
},
"Children": [
{
"Type": "NodeText",
"Data": "内容块数量:内容块数量对性能影响范围较大,比如展开文档树、搜索、数据写入等。但也不必太过担心,通常情况下内容块数量在百万这个量级下不会产生太大影响,除非每个块的大小较大"
}
]
}
]
},
{
"ID": "20230405165845-6y2mv74",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20230405165845-6y2mv74"
},
"Children": [
{
"ID": "20230405165845-53u31cu",
"Type": "NodeParagraph",
"Properties": {
"id": "20230405165845-53u31cu",
"updated": "20230405170104"
},
"Children": [
{
"Type": "NodeText",
"Data": "系统环境:操作系统当前负载会影响整体性能"
}
]
}
]
},
{
"ID": "20230405165808-5wngzx8",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20230405165808-5wngzx8"
},
"Children": [
{
"ID": "20230405165808-3zntfkm",
"Type": "NodeParagraph",
"Properties": {
"id": "20230405165808-3zntfkm",
"updated": "20230405170039"
},
"Children": [
{
"Type": "NodeText",
"Data": "网络环境:通过 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "kbd",
"TextMarkTextContent": "网络伺服"
},
{
"Type": "NodeText",
"Data": " 使用时网络质量会影响请求响应时间"
}
]
}
]
}
]
},
{
"ID": "20230405171454-ymftblp",
"Type": "NodeParagraph",
"Properties": {
"id": "20230405171454-ymftblp",
"updated": "20230405171510"
},
"Children": [
{
"Type": "NodeText",
"Data": "优化建议:"
}
]
},
{
"ID": "20230405164011-8ne0vie",
"Type": "NodeList",
"ListData": {},
"Properties": {
"id": "20230405164011-8ne0vie",
"updated": "20230405172057"
},
"Children": [
{
"ID": "20230405170328-57e3msy",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20230405170328-57e3msy",
"updated": "20230405170328"
},
"Children": [
{
"ID": "20230405170328-1l9e6jo",
"Type": "NodeParagraph",
"Properties": {
"id": "20230405170328-1l9e6jo",
"updated": "20230405171925"
},
"Children": [
{
"Type": "NodeText",
"Data": "将不常用的文档或者剪藏的文档单独放置到 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "存档笔记本"
},
{
"Type": "NodeText",
"Data": " 或 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "剪藏笔记本"
},
{
"Type": "NodeText",
"Data": " 中,关闭它后将减少数据库索引数量以提升性能"
}
]
}
]
},
{
"ID": "20230405170332-ngntw8m",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20230405170332-ngntw8m",
"updated": "20230405172057"
},
"Children": [
{
"ID": "20230405170332-6ua0c94",
"Type": "NodeParagraph",
"Properties": {
"id": "20230405170332-6ua0c94",
"updated": "20230405172057"
},
"Children": [
{
"Type": "NodeText",
"Data": "调小 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "kbd",
"TextMarkTextContent": "搜索结果显示数"
},
{
"Type": "NodeText",
"Data": "​,我们会对搜索请求响应时间进行性能监控,如果响应时间超过阈值,则会弹出提示用户调小该配置项"
}
]
},
{
"ID": "20230405170338-shctk9a",
"Type": "NodeParagraph",
"Properties": {
"id": "20230405170338-shctk9a",
"updated": "20230405170348"
},
"Children": [
{
"Type": "NodeText",
"Data": "性能监控阈值可以通过环境变量 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "SIYUAN_PERFORMANCE_TIMING"
},
{
"Type": "NodeText",
"Data": " 设置,单位毫秒,默认为 15000即 15 秒"
}
]
}
]
},
{
"ID": "20230405171957-iig6haf",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20230405171957-iig6haf",
"updated": "20230405171957"
},
"Children": [
{
"ID": "20230405171957-h8eamky",
"Type": "NodeParagraph",
"Properties": {
"id": "20230405171957-h8eamky",
"updated": "20230405171957"
},
"Children": [
{
"Type": "NodeText",
"Data": "保持足够的系统资源"
}
]
}
]
},
{
"ID": "20230405170348-hai4iv6",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20230405170348-hai4iv6"
},
"Children": [
{
"ID": "20230405170348-xnkii3v",
"Type": "NodeParagraph",
"Properties": {
"id": "20230405170348-xnkii3v",
"updated": "20230405170613"
},
"Children": [
{
"Type": "NodeText",
"Data": "使用固态硬盘,将工作空间放置在固态硬盘上能够有效提升整体性能"
}
]
}
]
},
{
"ID": "20230405170559-t1q23kt",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20230405170559-t1q23kt"
},
"Children": [
{
"ID": "20230405170559-azo1ee4",
"Type": "NodeParagraph",
"Properties": {
"id": "20230405170559-azo1ee4",
"updated": "20230405170603"
},
"Children": [
{
"Type": "NodeText",
"Data": "升级硬件,这是提升性能最快的方式"
}
]
}
]
}
]
},
{
"ID": "20230405171407-ltaakx8",
"Type": "NodeHeading",
"HeadingLevel": 3,
"Properties": {
"id": "20230405171407-ltaakx8",
"updated": "20230405171419"
},
"Children": [
{
"Type": "NodeText",
"Data": "编辑器性能"
}
]
},
{
"ID": "20230405171343-t3v7zis",
"Type": "NodeList",
"ListData": {},
"Properties": {
"id": "20230405171343-t3v7zis",
"updated": "20230405165229"
},
"Children": [
{
"ID": "20230405165213-7f2mie7",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20230405165213-7f2mie7"
},
"Children": [
{
"ID": "20230405165213-tb7ozhd",
"Type": "NodeParagraph",
"Properties": {
"id": "20230405165213-tb7ozhd",
"updated": "20230405165216"
},
"Children": [
{
"Type": "NodeText",
"Data": "叶子块大小:单个叶子块大小主要影响编辑器性能,如果一个叶子块包含了大量字符,那么编辑器可能会卡顿"
}
]
}
]
},
{
"ID": "20230405170653-z2vsmgf",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20230405170653-z2vsmgf"
},
"Children": [
{
"ID": "20230405170653-xsogb1v",
"Type": "NodeParagraph",
"Properties": {
"id": "20230405170653-xsogb1v",
"updated": "20230405171038"
},
"Children": [
{
"Type": "NodeText",
"Data": "动态加载块数:加载块数主要影响编辑器性能,特别是对于公式块、代码块和图表块较多的情况,如果加载较多块,那么编辑器可能会卡顿"
}
]
}
]
},
{
"ID": "20230405165219-ssntm64",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20230405165219-ssntm64"
},
"Children": [
{
"ID": "20230405165219-tu1gvvv",
"Type": "NodeParagraph",
"Properties": {
"id": "20230405165219-tu1gvvv",
"updated": "20230405165223"
},
"Children": [
{
"Type": "NodeText",
"Data": "代码块行号:代码块行号主要影响编辑器性能,如果一个代码块内容较多且开启了行号显示,那么编辑器可能会卡顿"
}
]
}
]
},
{
"ID": "20230405165226-j1zfdmb",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20230405165226-j1zfdmb",
"updated": "20230405165229"
},
"Children": [
{
"ID": "20230405165226-tc75whx",
"Type": "NodeParagraph",
"Properties": {
"id": "20230405165226-tc75whx",
"updated": "20230405165229"
},
"Children": [
{
"Type": "NodeText",
"Data": "图片和图表:图片和图表主要影响编辑器性能,如果文档中包含了大量图片和图表,那么编辑器可能会卡顿"
}
]
}
]
}
]
},
{
"ID": "20230405161457-3yp9do2",
"Type": "NodeParagraph",
"Properties": {
"id": "20230405161457-3yp9do2",
"updated": "20230405171525"
},
"Children": [
{
"Type": "NodeText",
"Data": "优化建议:"
}
]
},
{
"ID": "20230405171539-llfg8mm",
"Type": "NodeList",
"ListData": {},
"Properties": {
"id": "20230405171539-llfg8mm",
"updated": "20230405171758"
},
"Children": [
{
"ID": "20230405170725-q5rqhcg",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20230405170725-q5rqhcg",
"updated": "20230405171658"
},
"Children": [
{
"ID": "20230405170725-tys4mfj",
"Type": "NodeParagraph",
"Properties": {
"id": "20230405170725-tys4mfj",
"updated": "20230405171658"
},
"Children": [
{
"Type": "NodeText",
"Data": "避免使用过多软换行,虽然不使用软换行会增加块数,但是少使用软换行可以减小段落块大小避免编辑器卡顿"
}
]
}
]
},
{
"ID": "20230405171028-7xg5r4d",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20230405171028-7xg5r4d",
"updated": "20230405171758"
},
"Children": [
{
"ID": "20230405171028-dbqll81",
"Type": "NodeParagraph",
"Properties": {
"id": "20230405171028-dbqll81",
"updated": "20230405171758"
},
"Children": [
{
"Type": "NodeText",
"Data": "调小 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "kbd",
"TextMarkTextContent": "动态加载块数"
},
{
"Type": "NodeText",
"Data": "​,特别是对于公式块、代码块或图表块较多的使用场景"
}
]
}
]
}
]
}
]
}

View file

@ -1,6 +1,6 @@
{
"20211226114339-dk0gtpr": 4,
"20211226114929-08ap1r0": 5,
"20211226114339-dk0gtpr": 5,
"20211226114929-08ap1r0": 6,
"20211226115043-afhev0g": 3,
"20211226115227-r1rty9v": 2,
"20211226115423-d5z1joq": 1,
@ -45,5 +45,6 @@
"20221223221501-mops33i": 14,
"20230104151953-48hwkwf": 21,
"20230106104645-o838uew": 1,
"20230304000829-9jwu3po": 15
"20230304000829-9jwu3po": 15,
"20230405172131-yb16aax": 4
}

View file

@ -0,0 +1,604 @@
{
"ID": "20230405172131-yb16aax",
"Spec": "1",
"Type": "NodeDocument",
"Properties": {
"icon": "1f680",
"id": "20230405172131-yb16aax",
"title": "性能優化",
"updated": "20230405172342"
},
"Children": [
{
"ID": "20230405172204-a2fpv2e",
"Type": "NodeHeading",
"HeadingLevel": 2,
"Properties": {
"id": "20230405172204-a2fpv2e",
"updated": "20230405172204"
},
"Children": [
{
"Type": "NodeText",
"Data": "概述"
}
]
},
{
"ID": "20230405172204-vw3kp1u",
"Type": "NodeParagraph",
"Properties": {
"id": "20230405172204-vw3kp1u",
"updated": "20230405172204"
},
"Children": [
{
"Type": "NodeText",
"Data": "不同硬件配置、不同操作系統平台上性能表現是不一樣的。另外,隨著數據增多,性能下降無法避免。所以我們可能需要改變使用方式並調整一些配置項來提升性能,以獲得更流暢的使用體驗。"
}
]
},
{
"ID": "20230405172204-rp9750k",
"Type": "NodeHeading",
"HeadingLevel": 3,
"Properties": {
"id": "20230405172204-rp9750k",
"updated": "20230405172204"
},
"Children": [
{
"Type": "NodeText",
"Data": "整體性能"
}
]
},
{
"ID": "20230405172204-lnet9qc",
"Type": "NodeList",
"ListData": {},
"Properties": {
"id": "20230405172204-lnet9qc",
"updated": "20230405172342"
},
"Children": [
{
"ID": "20230405172204-vfsgcx7",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20230405172204-vfsgcx7",
"updated": "20230405172204"
},
"Children": [
{
"ID": "20230405172204-9h9726e",
"Type": "NodeParagraph",
"Properties": {
"id": "20230405172204-9h9726e",
"updated": "20230405172204"
},
"Children": [
{
"Type": "NodeText",
"Data": "內容塊數量:內容塊數量對性能影響範圍較大,比如展開文檔樹、搜索、數據寫入等。但也不必太過擔心,通常情況下內容塊數量在百萬這個量級下不會產生太大影響,除非每個塊的大小較大"
}
]
}
]
},
{
"ID": "20230405172204-9g3qlr0",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20230405172204-9g3qlr0",
"updated": "20230405172204"
},
"Children": [
{
"ID": "20230405172204-ud4rakr",
"Type": "NodeParagraph",
"Properties": {
"id": "20230405172204-ud4rakr",
"updated": "20230405172204"
},
"Children": [
{
"Type": "NodeText",
"Data": "系統環境:操作系統當前負載會影響整體性能"
}
]
}
]
},
{
"ID": "20230405172204-0muzhpd",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20230405172204-0muzhpd",
"updated": "20230405172342"
},
"Children": [
{
"ID": "20230405172204-2i19tk6",
"Type": "NodeParagraph",
"Properties": {
"id": "20230405172204-2i19tk6",
"updated": "20230405172342"
},
"Children": [
{
"Type": "NodeText",
"Data": "網絡環境:通過 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "kbd",
"TextMarkTextContent": "網絡伺服"
},
{
"Type": "NodeText",
"Data": " 使用時網絡質量會影響請求響應時間"
}
]
}
]
}
]
},
{
"ID": "20230405172204-vg3yj04",
"Type": "NodeParagraph",
"Properties": {
"id": "20230405172204-vg3yj04",
"updated": "20230405172204"
},
"Children": [
{
"Type": "NodeText",
"Data": "優化建議:"
}
]
},
{
"ID": "20230405172204-asqqhb3",
"Type": "NodeList",
"ListData": {},
"Properties": {
"id": "20230405172204-asqqhb3",
"updated": "20230405172220"
},
"Children": [
{
"ID": "20230405172204-rg13omn",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20230405172204-rg13omn",
"updated": "20230405172204"
},
"Children": [
{
"ID": "20230405172204-xq9f663",
"Type": "NodeParagraph",
"Properties": {
"id": "20230405172204-xq9f663",
"updated": "20230405172204"
},
"Children": [
{
"Type": "NodeText",
"Data": "將不常用的文檔或者剪藏的文檔單獨放置到 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "存檔筆記本"
},
{
"Type": "NodeText",
"Data": " 或 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "剪藏筆記本"
},
{
"Type": "NodeText",
"Data": " 中,關閉它後將減少數據庫索引數量以提升性能"
}
]
}
]
},
{
"ID": "20230405172204-emlf9x6",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20230405172204-emlf9x6",
"updated": "20230405172220"
},
"Children": [
{
"ID": "20230405172204-cm17y06",
"Type": "NodeParagraph",
"Properties": {
"id": "20230405172204-cm17y06",
"updated": "20230405172220"
},
"Children": [
{
"Type": "NodeText",
"Data": "調小 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "kbd",
"TextMarkTextContent": "搜索結果顯示數"
},
{
"Type": "NodeText",
"Data": "​,我們會對搜索請求響應時間進行性能監控,如果響應時間超過閾值,則會彈出提示用戶調小該配置項"
}
]
},
{
"ID": "20230405172204-jyz6cm1",
"Type": "NodeParagraph",
"Properties": {
"id": "20230405172204-jyz6cm1",
"updated": "20230405172204"
},
"Children": [
{
"Type": "NodeText",
"Data": "性能監控閾值可以通過環境變量 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "SIYUAN_PERFORMANCE_TIMING"
},
{
"Type": "NodeText",
"Data": " 設置,單位毫秒,默認為 15000即 15 秒"
}
]
}
]
},
{
"ID": "20230405172204-pku1j25",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20230405172204-pku1j25",
"updated": "20230405172204"
},
"Children": [
{
"ID": "20230405172204-orpzg2i",
"Type": "NodeParagraph",
"Properties": {
"id": "20230405172204-orpzg2i",
"updated": "20230405172204"
},
"Children": [
{
"Type": "NodeText",
"Data": "保持足夠的系統資源"
}
]
}
]
},
{
"ID": "20230405172204-rch4cp1",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20230405172204-rch4cp1",
"updated": "20230405172204"
},
"Children": [
{
"ID": "20230405172204-rj69mn9",
"Type": "NodeParagraph",
"Properties": {
"id": "20230405172204-rj69mn9",
"updated": "20230405172204"
},
"Children": [
{
"Type": "NodeText",
"Data": "使用固態硬盤,將工作空間放置在固態硬盤上能夠有效提升整體性能"
}
]
}
]
},
{
"ID": "20230405172204-b952apc",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20230405172204-b952apc",
"updated": "20230405172204"
},
"Children": [
{
"ID": "20230405172204-5h99cb5",
"Type": "NodeParagraph",
"Properties": {
"id": "20230405172204-5h99cb5",
"updated": "20230405172204"
},
"Children": [
{
"Type": "NodeText",
"Data": "升級硬件,這是提升性能最快的方式"
}
]
}
]
}
]
},
{
"ID": "20230405172204-kitngfu",
"Type": "NodeHeading",
"HeadingLevel": 3,
"Properties": {
"id": "20230405172204-kitngfu",
"updated": "20230405172204"
},
"Children": [
{
"Type": "NodeText",
"Data": "編輯器性能"
}
]
},
{
"ID": "20230405172204-rwrw4h5",
"Type": "NodeList",
"ListData": {},
"Properties": {
"id": "20230405172204-rwrw4h5",
"updated": "20230405172204"
},
"Children": [
{
"ID": "20230405172204-73vvmgi",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20230405172204-73vvmgi",
"updated": "20230405172204"
},
"Children": [
{
"ID": "20230405172204-cawwvgz",
"Type": "NodeParagraph",
"Properties": {
"id": "20230405172204-cawwvgz",
"updated": "20230405172204"
},
"Children": [
{
"Type": "NodeText",
"Data": "葉子塊大小:單個葉子塊大小主要影響編輯器性能,如果一個葉子塊包含了大量字符,那麼編輯器可能會卡頓"
}
]
}
]
},
{
"ID": "20230405172204-yl6jz5a",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20230405172204-yl6jz5a",
"updated": "20230405172204"
},
"Children": [
{
"ID": "20230405172204-3q6o7u5",
"Type": "NodeParagraph",
"Properties": {
"id": "20230405172204-3q6o7u5",
"updated": "20230405172204"
},
"Children": [
{
"Type": "NodeText",
"Data": "動態加載塊數:加載塊數主要影響編輯器性能,特別是對於公式塊、代碼塊和圖表塊較多的情況,如果加載較多塊,那麼編輯器可能會卡頓"
}
]
}
]
},
{
"ID": "20230405172204-y2kynd5",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20230405172204-y2kynd5",
"updated": "20230405172204"
},
"Children": [
{
"ID": "20230405172204-92zmfvs",
"Type": "NodeParagraph",
"Properties": {
"id": "20230405172204-92zmfvs",
"updated": "20230405172204"
},
"Children": [
{
"Type": "NodeText",
"Data": "代碼塊行號:代碼塊行號主要影響編輯器性能,如果一個代碼塊內容較多且開啟了行號顯示,那麼編輯器可能會卡頓"
}
]
}
]
},
{
"ID": "20230405172204-3o54nkp",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20230405172204-3o54nkp",
"updated": "20230405172204"
},
"Children": [
{
"ID": "20230405172204-klp5sm8",
"Type": "NodeParagraph",
"Properties": {
"id": "20230405172204-klp5sm8",
"updated": "20230405172204"
},
"Children": [
{
"Type": "NodeText",
"Data": "圖片和圖表:圖片和圖表主要影響編輯器性能,如果文檔中包含了大量圖片和圖表,那麼編輯器可能會卡頓"
}
]
}
]
}
]
},
{
"ID": "20230405172204-mtqmu5i",
"Type": "NodeParagraph",
"Properties": {
"id": "20230405172204-mtqmu5i",
"updated": "20230405172204"
},
"Children": [
{
"Type": "NodeText",
"Data": "優化建議:"
}
]
},
{
"ID": "20230405172204-ncmh788",
"Type": "NodeList",
"ListData": {},
"Properties": {
"id": "20230405172204-ncmh788",
"updated": "20230405172212"
},
"Children": [
{
"ID": "20230405172204-xnp4cms",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20230405172204-xnp4cms",
"updated": "20230405172204"
},
"Children": [
{
"ID": "20230405172204-hniz9rz",
"Type": "NodeParagraph",
"Properties": {
"id": "20230405172204-hniz9rz",
"updated": "20230405172204"
},
"Children": [
{
"Type": "NodeText",
"Data": "避免使用過多軟換行,雖然不使用軟換行會增加塊數,但是少使用軟換行可以減小段落塊大小避免編輯器卡頓"
}
]
}
]
},
{
"ID": "20230405172204-o16oek3",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20230405172204-o16oek3",
"updated": "20230405172212"
},
"Children": [
{
"ID": "20230405172204-hr76fx8",
"Type": "NodeParagraph",
"Properties": {
"id": "20230405172204-hr76fx8",
"updated": "20230405172212"
},
"Children": [
{
"Type": "NodeText",
"Data": "調小 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "kbd",
"TextMarkTextContent": "動態加載塊數"
},
{
"Type": "NodeText",
"Data": "​,特別是對於公式塊、代碼塊或圖表塊較多的使用場景"
}
]
}
]
}
]
}
]
}