contentlayerdev / contentlayerdev/contentlayer

Internal: Performance improvements for `getConfig`

Ouverte
#158 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub
meta: never-stale topic: performance
Langage dominant
TypeScript
Étoiles
3.5k
Forks
192
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

`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

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.