Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Full workspace save does unnecessary work on large workspaces

未关闭
#2,887 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
48/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
java

调研方向

从 SaveManager.save(FULL_SAVE, ...) 开始,然后检查 visitAndSave、visitAndSnap、resetSnapshots、removeUnusedTreeFiles 和 saveMetaInfo;将完整保存行为与快照跟踪以及按项目并行的工作进行比较。在测量关闭行为时,还要检查 IDEWorkbenchAdvisor.disconnectFromWorkspace() 和 SafeFileOutputStream。当未更改的资源避免冗余写入、减少不必要的时钟读取、处理顺序遍历,并且可以看到 ISaveParticipant 的计时信息时,即视为完成。

由索引模型根据 Issue 内容生成。

描述

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.

主要语言
Java
星标
165
派生
174
平均合并
2 天 20 小时
30 天内合并 PR
39

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

eclipse-platform/eclipse.platform 的其他 Issue

查看 eclipse-platform/eclipse.platform 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。