Tags
npm build before improvements - ~3.33min (laptop), ~11min (cloudflare)npm build with improvements - ~1.1min (laptop), ~4min (cloudflare)fancy parts
<Tagged />, <CollectionLinks />, and <References /> components inside the posts pagegetSortedPostsData -> %33improvements
getSortedPostsDatauzeCache helper
uzeCache: useCache caused the eslint to error with React Hook Rulesnpm run setup-cache
.cache.cacheperformance test
npm build with ALL the fancy parts - ~3.33min (laptop)npm build with getSortedPostsData cached - ~2.21min (laptop)conclusion
<CollectionLinks /> -> no change!improvements
getPostData call from <CollectionLinks />getAllCollectionIDsperformance test
npm build with getSortedPostsData cached - ~2.21min (laptop)npm build with improvements - NO CHANGE!conclusion
<References /> on posts page -> 50%biggest improvement here might be revisiting the product decision to make all these references
cocktails graph, so review thoseimprovements
getReferences a little bit, only by a constant factor tho -> no affect on performanceidTagsTagsReferences is getting used anywhere, remove it -> 23% improvement!idTagsReferences via effects -> 35% improvement!performance test
npm build with getSortedPostsData cached - ~2.21min (laptop)npm build with improvements - ~1.1min (laptop)Return home to Smooth Unfolding