On large projects the IDE uses excessive memory
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- haskell
- Lĩnh vực
- developer-experience, performance
Hướng nghiên cứu
Start by reading the populateVolatileStateSTM and possibly populateVolatileStateSync entry points mentioned in the issue, then profile memory use and command latency on a sufficiently large project. Compare behavior with PureScript 0.15.15; done means the IDE no longer rapidly consumes excessive memory and common commands complete within a few seconds.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Description
On our project of 9877 source files (including libs), the IDE quickly consumes so much memory that it becomes hard to work with.
On my 32GB Apple M2, it will be using over 20GB of memory in under a minute. It then starts to slow down until common commands, like looking up a type definition can take over 30 seconds.
To Reproduce
This is not simple as our project is not open source but I believe it would be likely to happen on any sufficiently large project.
Expected behavior
The IDE should limit it's memory usage and commands should execute within a few seconds.
Additional context
From tinkering with the IDE, I have found that the forcing of the result in populateVolatileStateSTM and possibly populateVolatileStateSync as well, seems to be responsible. I will make a draft PR to explain in more detail.
I was also wondering if running each command on a new thread and setting allocation limits and/or a timeout for it might help by limiting the resources used by abnormally greedy requests.
PureScript version
0.15.15
- Ngôn ngữ chính
- Haskell
- Star
- 8.9k
- Fork
- 575
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
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.
Issue khác của purescript/purescript
-
type: bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
purescript/purescript#4595 · 2 bình luận ·
-
type: bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
purescript/purescript#4590 · 3 bình luận ·
-
type: bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
purescript/purescript#4589 · 3 bình luận ·
-
type: bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
purescript/purescript#4588 · 5 bình luận ·
-
type: enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
purescript/purescript#4587 · 1 bình luận · 2 reaction ·
Tất cả issue của purescript/purescript
Issue tương tự
-
docs
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
-
needs triage type: bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
doclayout-0.6 Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
commercialhaskell/stackage#8126 ·