Library and Archive: opening or saving a small text file takes 1 to 6 seconds

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

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

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

调研方向

Start by profiling library-object reads and writes and the eight sidebar folder-list requests made during each Library window load. Check whether the folder lists are handled one at a time, and review #445 for the related cost of decrypting every file in a folder. Done means small text files open and save about as fast as in Documents, and the visible folder loads before the others.

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

描述

The ElastOS User Tester measured this on 0.8.0-alpha.25 (source 92aeea44d) on 28 Oct 2026, three runs each, with a 44-byte .txt file:

  • Library opened the file in Documents in about 1.5 s and saved it in about 0.9 s. Each library-object read or write took about 1 s.
  • Archive took about 6.4 s to make a ZIP of that file and about 4.4 s to open the ZIP.
  • For comparison, Documents saved its own file in about 60 ms.

Each Library window load, including the picker that Archive uses, asks for the lists of eight sidebar folders at the same moment. The last list returned after about 3 s, and an action the person took right after it waited behind them. The tester did not check whether the server answers these lists one at a time.

Expected: a small file opens and saves about as fast as in Documents, and Library loads the folder the person sees before the others. A good first step is to profile library-object and the folder lists. #445 (a folder listing decrypts every file in the folder) may explain part of the time.

The 0.8.0 candidate has no change for this, and the timings were not measured again on it.

主要语言
Rust
星标
6
派生
2
平均合并
1 天 3 小时
30 天内合并 PR
42

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

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

elastos/elastos-runtime 的其他 Issue

查看 elastos/elastos-runtime 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

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