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

Unified Diff: Severe performance degradation when editing with folded unchanged regions

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

Maintainer thường phản hồi trong vòng 1 ngày

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
45/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
java
Lĩnh vực
performance

Hướng nghiên cứu

Start with the Unified Diff preference and the folding mechanism described in the report, then profile typing with many unchanged regions folded. Investigate whether annotation recomputation, projection updates, or diff recalculation runs on each document change. Done means normal input responsiveness with many folded regions and coverage for this reproduction scenario.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Problem

When the preference "Fold unchanged regions, keeping a few lines of context around each change" is enabled and many unchanged regions are folded, editing the document becomes very slow. User input is barely registered or has a significant delay, making the editor practically unusable in this state.

Steps to Reproduce

  1. Enable Unified Diff in Preferences > Compare/Patch.
  2. Enable "Fold unchanged regions, keeping a few lines of context around each change".
  3. Open a file with many changes so that a large number of unchanged regions are folded.
  4. Start typing / editing in the editor.

Expected Behavior

Editing performance should be unaffected by the number of folded regions. User input should be processed at normal speed regardless of the folding state.

Actual Behavior

The editor becomes very slow. Keystrokes are delayed or dropped, making editing effectively impossible when many regions are folded.

Notes

This issue requires root-cause analysis. The folding mechanism likely triggers expensive recalculations (e.g. annotation recomputation, projection updates, or diff recalculation) on every document change, which does not scale with large numbers of folded regions.

Ngôn ngữ chính
Java
Star
165
Fork
174
Merge trung bình
2 ngày 16 giờ
Pull request đã merge (30 ngày)
45

Chuẩn bị môi trường

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 eclipse-platform/eclipse.platform

Tất cả issue của eclipse-platform/eclipse.platform

Issue tương tự

Thêm issue về Java

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.