Performance improvements after 2.0
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 58/100
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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
- Vorherrschende Sprache
- Python
- Sterne
- 671
- Forks
- 76
- Ø Merge
- 17 Std. 55 Min.
- Gemergte PRs (30 T.)
- 46
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus iterative/PyDrive2
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
Maintainer antworten meist innerhalb von 1 Tag
-
Test cleanups after the 2.0 fix PRsEvtl. vergeben Ein verknüpfter Pull Request ist offen oder bereits gemergt. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
Maintainer antworten meist innerhalb von 1 Tag
-
maintenance priority-p2 tests
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
iterative/PyDrive2#399 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
awaiting response priority-p1 triage
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 45/100
iterative/PyDrive2#412 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
feature request fs priority-p2
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 35/100
iterative/PyDrive2#236 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in iterative/PyDrive2
Ähnliche Issues
-
A JSON chat answer blocks the backend event loop for the whole RAG runEvtl. vergeben @NopeCharon hat das heute übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 85/100
The-OpenROAD-Project/ORAssistant#656 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug(operator): VolterraOperator built inside jax.jit with a concrete decay raises TracerBoolConversionErrorEvtl. vergeben @jejjohnson hat das heute übernommen. Offentype:bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
jejjohnson/integrix#144 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
finos/ai-governance-framework#459 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
autowarefoundation/autoware_carla_scenario#2963 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
freelawproject/litigant-portal#1307 ·
Maintainer antworten meist innerhalb von 2 Tagen