microsoft / microsoft/TypeScript
Use LazyBarrel to improve IDE performance
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Go
- Sterne
- 111k
- Forks
- 14.3k
- Ø Merge
- 2 T. 4 Std.
- Gemergte PRs (30 T.)
- 132
Beschreibung
🔍 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.
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne mit dem TypeScript Language Server und der verlinkten LazyBarrel-Erklärung, um die vorgeschlagene Optimierung und ihren Umfang zu verstehen. Identifiziere einen experimentellen Integrationspunkt und ein messbares IDE-Performance-Szenario; die Umsetzung sollte eine verbesserte Performance für Barrel-lastigen TypeScript-Code demonstrieren, ohne das Laufzeitverhalten zu ändern.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- typescript
- Bereich
- developer-experience, performance
- Issue-Typ
- Feature
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 25/100