Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

On large projects the IDE uses excessive memory

Đang mở
#4,545 0 bình luận 2 reaction 0 người được giao Xem trên GitHub

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

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ả

type: bug

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

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của purescript/purescript

Tất cả issue của purescript/purescript

Issue tương tự

Thêm issue về Haskell

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.