microsoft / microsoft/TypeScript
Use LazyBarrel to improve IDE performance
Personne n'a encore pris cette issue.
- Langage dominant
- Go
- Étoiles
- 111k
- Forks
- 14.3k
- Merge moyen
- 2 j 4 h
- PR mergées (30 j)
- 132
Description
🔍 Search Terms
"re-export", "barrel file", "optimization", "performance"
✅ Viability Checklist
- This wouldn't be a breaking change in existing TypeScript/JavaScript code
- This wouldn't change the runtime behavior of existing JavaScript code
- This could be implemented without emitting different JS based on the types of the expressions
- This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, new syntax sugar for JS, etc.)
- This isn't a request to add a new utility type: https://github.com/microsoft/TypeScript/wiki/No-New-Utility-Types
- This feature would agree with the rest of our Design Goals: https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals
⭐ Suggestion
Can the Typescript Language Server implement and use its own version of the LazyBarrel optimization as an experimental feature to improve IDE performance?
📃 Motivating Example
This feature should improve IDE performance (e.g. type highlight) and reduce the impact of barrel files on Typescript codebases.
Explanation provided on LazyBarrel.
💻 Use Cases
- What do you want to use this for?
Improving IDE performance.
- What shortcomings exist with current approaches?
Barrel files have a significant impact on IDE performance in Typescript codebases.
- What workarounds are you using in the meantime?
Manually de-barreling packages.
Guide de contribution
Ouvrir le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Piste de recherche
Commencez par le TypeScript Language Server et l’explication LazyBarrel liée afin de comprendre l’optimisation proposée et sa portée. Identifiez un point d’intégration expérimental et un scénario mesurable de performance de l’IDE ; la réalisation doit démontrer une amélioration des performances pour du code TypeScript utilisant intensivement les barrels, sans modifier le comportement à l’exécution.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- typescript
- Domaine
- developer-experience, performance
- Type d'issue
- Fonctionnalité
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Activité
- À l'abandon
- Clarté
- À clarifier
- Accessibilité débutants
- 25/100