microsoft / microsoft/TypeScript
Use LazyBarrel to improve IDE performance
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- Go
- Star
- 111k
- Fork
- 14.3k
- Merge trung bình
- 2 ngày 4 giờ
- Pull request đã merge (30 ngày)
- 132
Mô tả
🔍 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.
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu với TypeScript Language Server và phần giải thích LazyBarrel được liên kết để hiểu tối ưu hóa được đề xuất và phạm vi của nó. Xác định một điểm tích hợp thử nghiệm và một kịch bản hiệu năng IDE có thể đo lường; khi hoàn thành, cần chứng minh hiệu năng được cải thiện đối với mã TypeScript sử dụng nhiều barrel mà không thay đổi hành vi lúc chạy.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- typescript
- Lĩnh vực
- developer-experience, performance
- Loại issue
- Tính năng
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 25/100