Full workspace save does unnecessary work on large workspaces
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 48/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- java
调研方向
从 SaveManager.save(FULL_SAVE, ...) 开始,然后检查 visitAndSave、visitAndSnap、resetSnapshots、removeUnusedTreeFiles 和 saveMetaInfo;将完整保存行为与快照跟踪以及按项目并行的工作进行比较。在测量关闭行为时,还要检查 IDEWorkbenchAdvisor.disconnectFromWorkspace() 和 SafeFileOutputStream。当未更改的资源避免冗余写入、减少不必要的时钟读取、处理顺序遍历,并且可以看到 ISaveParticipant 的计时信息时,即视为完成。
由索引模型根据 Issue 内容生成。
描述
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:
SafeFileOutputStreamcommits by copying the temporary file over the target, so the workspace
tree,.markersand.syncinfoare written twice.visitAndSaverewrites.markersand.syncinfofor every project, even when neither changed
since the last full save. The snapshot path already tracks this per resource, the full save does not.visitAndSaveandvisitAndSnapread the clock four times per visited resource even when no
save trace option is enabled.resetSnapshots,removeUnusedTreeFilesandsaveMetaInfowalk all projects sequentially doing
file system stats, whilevisitAndSavenext to them already runs per project in parallel.- A slow
ISaveParticipantis 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
环境准备
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
eclipse-platform/eclipse.platform 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
eclipse-platform/eclipse.platform#2940 ·
维护者通常 1 天内回复
-
Terminal views all show same name 'Terminal' in Ctrl+F7 view switcher popup可能已有人在做 @ravnskjaer 于 4 天前认领。 未关闭bug good first issue help wanted
难度 2/5 1-3 小时 新手友好度 68/100
eclipse-platform/eclipse.platform#2774 · 4 条评论 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 68/100
eclipse-platform/eclipse.platform#2593 · 7 条评论 ·
维护者通常 1 天内回复
-
enhancement
难度 4/5 3-5 天 新手友好度 42/100
eclipse-platform/eclipse.platform#3015 ·
维护者通常 1 天内回复
-
NPE in AbstractWindowListener.windowOpened when ConsoleManager service is null可能已有人在做 @SougandhS 于 1 天前认领。 未关闭bug
难度 3/5 1-2 天 新手友好度 25/100
eclipse-platform/eclipse.platform#3012 ·
维护者通常 1 天内回复
查看 eclipse-platform/eclipse.platform 的全部 Issue
相似的 Issue
-
[BUG] 增量 SSE 解析器未识别单独 CR 换行,导致事件无法及时交付可能已有人在做 @king-wwwhhh 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 76/100
langchain4j/langchain4j#6669 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
OpenAPITools/openapi-generator#25237 ·
维护者通常 1 天内回复
-
needs-area-label
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
quelea-projection/Quelea#711 ·
-
bug pdd
难度 2/5 1 小时以内 新手友好度 67/100
objectionary/eo#9450 ·
维护者通常 1 天内回复