Skip to content

Commit

Permalink
修改错别字
Browse files Browse the repository at this point in the history
  • Loading branch information
ChenChao committed Sep 25, 2023
1 parent bb6062b commit 1dea7a7
Show file tree
Hide file tree
Showing 16 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion Chapter2/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# 第二章

本文章所讲的性能优化指的是app响应用户操作和渲染画面的速度。内存大小优化、包体积优化不在此列。
本文章所讲的性能优化指的是App响应用户操作和渲染画面的速度。内存大小优化、包体积优化不在此列。

本文章主要围绕官方的《flutter性能优化最佳实践》和keframe插件的分帧渲染优化方案做实践总结。

Expand Down
2 changes: 1 addition & 1 deletion Chapter2/image.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
像Image.assets(),Image.network()或者decorationImage这样的图片widget,底层解码调用了硬件解码,所以解码效率比较高,在解码速度方面可以优化的空间也很小。


### 图片的性能优化可以从以下两个方面入手:
### 图片的性能优化可以从以下三个方面入手:

##### 1.图片的本地缓存。请求过的图片,缓存在磁盘里面,在有效期之内,都不用再从网络请求了。cached_network_image就是做这个事情的。

Expand Down
2 changes: 1 addition & 1 deletion docs/Chapter1/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ <h1 class="search-results-title">No results matching "<span class='search-query'
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"第一章 渲染流程","level":"1.2","depth":1,"next":{"title":"第1节:三棵树","level":"1.2.1","depth":2,"path":"Chapter1/tree.md","ref":"Chapter1/tree.md","articles":[]},"previous":{"title":"前言","level":"1.1","depth":1,"path":"README.md","ref":"README.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["livereload"],"pluginsConfig":{"livereload":{},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"Chapter1/README.md","mtime":"2023-09-22T08:55:33.951Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2023-09-25T02:31:38.669Z"},"basePath":"..","book":{"language":""}});
gitbook.page.hasChanged({"page":{"title":"第一章 渲染流程","level":"1.2","depth":1,"next":{"title":"第1节:三棵树","level":"1.2.1","depth":2,"path":"Chapter1/tree.md","ref":"Chapter1/tree.md","articles":[]},"previous":{"title":"前言","level":"1.1","depth":1,"path":"README.md","ref":"README.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["livereload"],"pluginsConfig":{"livereload":{},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"Chapter1/README.md","mtime":"2023-09-22T08:55:33.951Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2023-09-25T02:37:34.829Z"},"basePath":"..","book":{"language":""}});
});
</script>
</div>
Expand Down
2 changes: 1 addition & 1 deletion docs/Chapter1/key.html
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ <h1 class="search-results-title">No results matching "<span class='search-query'
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"第4节:key与复用","level":"1.2.4","depth":2,"next":{"title":"第二章 性能优化","level":"1.3","depth":1,"path":"Chapter2/README.md","ref":"Chapter2/README.md","articles":[{"title":"第1节:widget重建优化","level":"1.3.1","depth":2,"path":"Chapter2/widet_build.md","ref":"Chapter2/widet_build.md","articles":[]},{"title":"第2节:布局优化","level":"1.3.2","depth":2,"path":"Chapter2/layout.md","ref":"Chapter2/layout.md","articles":[]},{"title":"第3节:离屏渲染优化","level":"1.3.3","depth":2,"path":"Chapter2/offscreen.md","ref":"Chapter2/offscreen.md","articles":[]},{"title":"第4节:图片优化","level":"1.3.4","depth":2,"path":"Chapter2/image.md","ref":"Chapter2/image.md","articles":[]},{"title":"第5节:绘制边界优化","level":"1.3.5","depth":2,"path":"Chapter2/repaintBoundary.md","ref":"Chapter2/repaintBoundary.md","articles":[]},{"title":"第6节:分帧渲染优化","level":"1.3.6","depth":2,"path":"Chapter2/frame_seprate.md","ref":"Chapter2/frame_seprate.md","articles":[]}]},"previous":{"title":"第3节:渲染流程","level":"1.2.3","depth":2,"path":"Chapter1/pipeline.md","ref":"Chapter1/pipeline.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["livereload"],"pluginsConfig":{"livereload":{},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"Chapter1/key.md","mtime":"2023-09-21T12:20:58.550Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2023-09-25T02:31:38.669Z"},"basePath":"..","book":{"language":""}});
gitbook.page.hasChanged({"page":{"title":"第4节:key与复用","level":"1.2.4","depth":2,"next":{"title":"第二章 性能优化","level":"1.3","depth":1,"path":"Chapter2/README.md","ref":"Chapter2/README.md","articles":[{"title":"第1节:widget重建优化","level":"1.3.1","depth":2,"path":"Chapter2/widet_build.md","ref":"Chapter2/widet_build.md","articles":[]},{"title":"第2节:布局优化","level":"1.3.2","depth":2,"path":"Chapter2/layout.md","ref":"Chapter2/layout.md","articles":[]},{"title":"第3节:离屏渲染优化","level":"1.3.3","depth":2,"path":"Chapter2/offscreen.md","ref":"Chapter2/offscreen.md","articles":[]},{"title":"第4节:图片优化","level":"1.3.4","depth":2,"path":"Chapter2/image.md","ref":"Chapter2/image.md","articles":[]},{"title":"第5节:绘制边界优化","level":"1.3.5","depth":2,"path":"Chapter2/repaintBoundary.md","ref":"Chapter2/repaintBoundary.md","articles":[]},{"title":"第6节:分帧渲染优化","level":"1.3.6","depth":2,"path":"Chapter2/frame_seprate.md","ref":"Chapter2/frame_seprate.md","articles":[]}]},"previous":{"title":"第3节:渲染流程","level":"1.2.3","depth":2,"path":"Chapter1/pipeline.md","ref":"Chapter1/pipeline.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["livereload"],"pluginsConfig":{"livereload":{},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"Chapter1/key.md","mtime":"2023-09-21T12:20:58.550Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2023-09-25T02:37:34.829Z"},"basePath":"..","book":{"language":""}});
});
</script>
</div>
Expand Down
2 changes: 1 addition & 1 deletion docs/Chapter1/pipeline.html
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ <h1 class="search-results-title">No results matching "<span class='search-query'
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"第3节:渲染流程","level":"1.2.3","depth":2,"next":{"title":"第4节:key与复用","level":"1.2.4","depth":2,"path":"Chapter1/key.md","ref":"Chapter1/key.md","articles":[]},"previous":{"title":"第2节:绘制边界","level":"1.2.2","depth":2,"path":"Chapter1/repaintBoundary.md","ref":"Chapter1/repaintBoundary.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["livereload"],"pluginsConfig":{"livereload":{},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"Chapter1/pipeline.md","mtime":"2023-09-22T08:03:21.525Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2023-09-25T02:31:38.669Z"},"basePath":"..","book":{"language":""}});
gitbook.page.hasChanged({"page":{"title":"第3节:渲染流程","level":"1.2.3","depth":2,"next":{"title":"第4节:key与复用","level":"1.2.4","depth":2,"path":"Chapter1/key.md","ref":"Chapter1/key.md","articles":[]},"previous":{"title":"第2节:绘制边界","level":"1.2.2","depth":2,"path":"Chapter1/repaintBoundary.md","ref":"Chapter1/repaintBoundary.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["livereload"],"pluginsConfig":{"livereload":{},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"Chapter1/pipeline.md","mtime":"2023-09-22T08:03:21.525Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2023-09-25T02:37:34.829Z"},"basePath":"..","book":{"language":""}});
});
</script>
</div>
Expand Down
2 changes: 1 addition & 1 deletion docs/Chapter1/repaintBoundary.html
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ <h1 class="search-results-title">No results matching "<span class='search-query'
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"第2节:绘制边界","level":"1.2.2","depth":2,"next":{"title":"第3节:渲染流程","level":"1.2.3","depth":2,"path":"Chapter1/pipeline.md","ref":"Chapter1/pipeline.md","articles":[]},"previous":{"title":"第1节:三棵树","level":"1.2.1","depth":2,"path":"Chapter1/tree.md","ref":"Chapter1/tree.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["livereload"],"pluginsConfig":{"livereload":{},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"Chapter1/repaintBoundary.md","mtime":"2023-09-22T09:08:15.010Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2023-09-25T02:31:38.669Z"},"basePath":"..","book":{"language":""}});
gitbook.page.hasChanged({"page":{"title":"第2节:绘制边界","level":"1.2.2","depth":2,"next":{"title":"第3节:渲染流程","level":"1.2.3","depth":2,"path":"Chapter1/pipeline.md","ref":"Chapter1/pipeline.md","articles":[]},"previous":{"title":"第1节:三棵树","level":"1.2.1","depth":2,"path":"Chapter1/tree.md","ref":"Chapter1/tree.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["livereload"],"pluginsConfig":{"livereload":{},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"Chapter1/repaintBoundary.md","mtime":"2023-09-22T09:08:15.010Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2023-09-25T02:37:34.829Z"},"basePath":"..","book":{"language":""}});
});
</script>
</div>
Expand Down
Loading

0 comments on commit 1dea7a7

Please sign in to comment.