Internal: Performance improvements for `getConfig`
還沒有人認領這個 Issue。
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 35/100
- Issue 類型
- 重構
- 描述清晰度
- 需要釐清
- 活躍度
- 停滯
- 技術堆疊
- typescript
- 領域
- performance, tooling
研究方向
先對 getConfig 進行效能分析,尤其是 import-compiled-contentlayer-config 步驟以及涉及 contentlayer.config.ts 的檢查。比較設定未變更時的執行結果,以及觸發錯誤處理時的執行結果。在保留現有設定產生和錯誤行為的同時,對瓶頸實現經測量的改善,即視為完成。
由索引模型根據 Issue 內容生成。
描述
getConfig is currently a performance bottleneck and should be improved if possible.
Some ideas:
- Short-circuit esbuild generation if "nothing has changed"
- Do "optimistic file-checks" i.e. only check for file existence as part of error handling path to not slow down the critical path (e.g. when checking for existence of
contentlayer.config.ts) - Resolve Contentlayer version at compile time instead of dynamically
- Investigate ways to speed up the
import-compiled-contentlayer-configstep
- 主要語言
- TypeScript
- 星號
- 3.5k
- 分支
- 192
- PR 合併指標
- 30 天內沒有已合併 PR
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
contentlayerdev/contentlayer 的其他 Issue
-
Error when building with contentlayer 0.3.4 and Next.js 13 App Router可能已有人在做 關聯的 PR 仍在進行中或已合併。 未關閉
難度 3/5 1-2 天 新手友好度 25/100
contentlayerdev/contentlayer#506 · 84 則留言 · 47 個 reaction ·
-
Poor/broken monorepo DX: can't specify .contentlayer/ output path, no docs for custom config path未關閉help wanted meta: never-stale needs-research
難度 4/5 3-5 天 新手友好度 38/100
contentlayerdev/contentlayer#464 · 4 則留言 · 9 個 reaction ·
-
meta: never-stale
難度 5/5 一週以上 新手友好度 10/100
contentlayerdev/contentlayer#429 · 49 則留言 · 83 個 reaction ·
-
meta: never-stale topic: markdown/mdx
難度 4/5 3-5 天 新手友好度 42/100
contentlayerdev/contentlayer#421 · 4 個 reaction ·
-
meta: never-stale needs-research topic: schema
難度 5/5 一週以上 新手友好度 25/100
contentlayerdev/contentlayer#420 ·
查看 contentlayerdev/contentlayer 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 62/100
one-zero-eight/apply-bot#39 ·
-
難度 2/5 1-3 小時 新手友好度 72/100
bigbluebutton/bbb-ui-components-react#108 ·
維護者通常 2 天內回覆
-
難度 2/5 1-3 小時 新手友好度 82/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 70/100
維護者通常 1 天內回覆
-
high priority
難度 2/5 1-3 小時 新手友好度 62/100
CI-CMG/deep-sea-corals-exb#84 · 1 則留言 ·