microsoft / microsoft/TypeScript
Use LazyBarrel to improve IDE performance
Nessuno ha ancora preso questa issue.
- Lingua principale
- Go
- Stelle
- 111k
- Fork
- 14.3k
- Merge medio
- 2g 4h
- PR unite (30g)
- 132
Descrizione
### 🔍 Search Terms
"re-export", "barrel file", "optimization", "performance"
### ✅ Viability Checklist
- [x] This wouldn't be a breaking change in existing TypeScript/JavaScript code
- [x] This wouldn't change the runtime behavior of existing JavaScript code
- [x] This could be implemented without emitting different JS based on the types of the expressions
- [x] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, new syntax sugar for JS, etc.)
- [x] This isn't a request to add a new utility type: https://github.com/microsoft/TypeScript/wiki/No-New-Utility-Types
- [x] 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](https://rspack.rs/guide/optimization/lazy-barrel) 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](https://rspack.rs/guide/optimization/lazy-barrel).
### 💻 Use Cases
1. What do you want to use this for?
Improving IDE performance.
2. What shortcomings exist with current approaches?
Barrel files have a significant impact on IDE performance in Typescript codebases.
3. What workarounds are you using in the meantime?
Manually de-barreling packages.
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia con il TypeScript Language Server e la spiegazione di LazyBarrel collegata per comprendere l’ottimizzazione proposta e il suo ambito. Individua un punto di integrazione sperimentale e uno scenario misurabile di prestazioni dell’IDE; l’implementazione dovrebbe dimostrare prestazioni migliori per codice TypeScript che fa un uso intensivo dei barrel senza modificare il comportamento a runtime.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- typescript
- Ambito
- developer-experience, performance
- Tipo di issue
- Funzionalità
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 25/100