Performance improvements after 2.0
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 58/100
研究方向
Read GoogleDriveFile.Upload() and the filesystem retry path affected by #443. Compare the current upload flow with Drive’s resumable upload session guide, focusing on retaining the session and querying its received byte offset after a connection failure. Done means retries resume from that offset while retaining the pre-generated file ID; the issue gives a 256 MiB offline measurement for comparison.
由索引模型根據 Issue 內容生成。
描述
Performance work deliberately left out of the 2.0 release. Each item works correctly today; it only costs more time, traffic or requests than it needs to.
Resume an interrupted upload instead of starting it again
Since #443 the filesystem repeats an upload whose connection fails, and a pre-generated file ID makes the repeat safe (no duplicate file). The repeat starts from the first byte, though:
fs.put_file("model.bin", "root/models/model.bin") # 256 MiB
If the connection drops after 240 MiB, the filesystem sends the whole 256 MiB again, 496 MiB in total. Up to three repeats can send the file four times.
Drive keeps a resumable upload session after a dropped connection. The client can ask the session how many bytes Drive has received (an empty PUT with Content-Range: bytes */<size>) and continue from that offset (Drive guide). That needs the upload in GoogleDriveFile.Upload() to keep its session between chunks and expose the offset, and the filesystem retry to resume that session instead of calling Upload() again. The pre-generated ID stays, for a final answer that is lost.
Measured offline: a 256 MiB upload whose connection drops at 240 MiB sends 496 MiB across two sessions.
🤖 Generated with Claude Code
- 主要語言
- Python
- 星號
- 671
- 分支
- 76
- 平均合併
- 17 小時 55 分鐘
- 30 天內合併 PR
- 46
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
iterative/PyDrive2 的其他 Issue
-
難度 2/5 1-3 小時 新手友好度 76/100
維護者通常 1 天內回覆
-
Test cleanups after the 2.0 fix PRs可能已有人在做 關聯的 PR 仍在進行中或已合併。 未關閉
難度 2/5 1-3 小時 新手友好度 65/100
維護者通常 1 天內回覆
-
maintenance priority-p2 tests
難度 2/5 1-3 小時 新手友好度 82/100
iterative/PyDrive2#399 · 1 則留言 ·
維護者通常 1 天內回覆
-
awaiting response priority-p1 triage
難度 3/5 1-2 天 新手友好度 45/100
iterative/PyDrive2#412 · 1 則留言 ·
維護者通常 1 天內回覆
-
feature request fs priority-p2
難度 5/5 一週以上 新手友好度 35/100
iterative/PyDrive2#236 · 2 則留言 ·
維護者通常 1 天內回覆
查看 iterative/PyDrive2 的全部 Issue
相似的 Issue
-
A JSON chat answer blocks the backend event loop for the whole RAG run可能已有人在做 @NopeCharon 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 85/100
The-OpenROAD-Project/ORAssistant#656 ·
維護者通常 1 天內回覆
-
bug(operator): VolterraOperator built inside jax.jit with a concrete decay raises TracerBoolConversionError可能已有人在做 @jejjohnson 今天認領。 未關閉type:bug
難度 2/5 1-3 小時 新手友好度 72/100
jejjohnson/integrix#144 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 74/100
finos/ai-governance-framework#459 ·
-
難度 2/5 1-3 小時 新手友好度 72/100
autowarefoundation/autoware_carla_scenario#2963 ·
維護者通常 1 天內回覆
-
bug
難度 2/5 1-3 小時 新手友好度 78/100
freelawproject/litigant-portal#1307 ·
維護者通常 2 天內回覆