contentlayerdev / contentlayerdev/contentlayer

Internal: Performance improvements for `getConfig`

オープン
#158 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
meta: never-stale topic: performance
主要言語
TypeScript
スター
3.5k
フォーク
192
PR マージ指標
30日以内にマージされた PR はありません

説明

`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-config` step

image

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。