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

Full workspace save does unnecessary work on large workspaces

Đang mở
#2,887 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
48/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
desktop-dev, performance

Hướng nghiên cứu

Bắt đầu với SaveManager.save(FULL_SAVE, ...), sau đó kiểm tra visitAndSave, visitAndSnap, resetSnapshots, removeUnusedTreeFiles và saveMetaInfo; so sánh hành vi lưu đầy đủ với việc theo dõi snapshot và công việc song song theo từng dự án. Kiểm tra IDEWorkbenchAdvisor.disconnectFromWorkspace() và SafeFileOutputStream khi đo hành vi tắt hệ thống. Hoàn tất khi các tài nguyên không thay đổi tránh được việc ghi dư thừa, giảm các lần đọc đồng hồ không cần thiết, xử lý các lần duyệt tuần tự và hiển thị được thời gian thực thi của ISaveParticipant.

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

Mô tả

performance plan

During tracing the startup time of Eclipse I noticed that shutdown is also slow.
On a workspace with 756 projects and ~3300 markers the "Saving Workspace" dialog shown by
IDEWorkbenchAdvisor.disconnectFromWorkspace() stays up for several seconds on shutdown.

Happens in SaveManager.save(FULL_SAVE, ...), and parts of it are done regardless of
what actually changed:

  • SafeFileOutputStream commits by copying the temporary file over the target, so the workspace
    tree, .markers and .syncinfo are written twice.
  • visitAndSave rewrites .markers and .syncinfo for every project, even when neither changed
    since the last full save. The snapshot path already tracks this per resource, the full save does not.
  • visitAndSave and visitAndSnap read the clock four times per visited resource even when no
    save trace option is enabled.
  • resetSnapshots, removeUnusedTreeFiles and saveMetaInfo walk all projects sequentially doing
    file system stats, while visitAndSave next to them already runs per project in parallel.
  • A slow ISaveParticipant is invisible without enabling -debug, so third party contributions
    cannot be told apart from platform work.

I plan to work on these.

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

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.