fix: clear ws_ckp after extraction to reduce workspace object size (#1137)

This commit is contained in:
you-n-g
2025-07-31 18:10:32 +08:00
committed by GitHub
parent 7fc09169bc
commit 28ceb41e1c
+2
View File
@@ -350,6 +350,8 @@ class FBWorkspace(Workspace):
dest_path.parent.mkdir(parents=True, exist_ok=True)
with dest_path.open("wb") as f:
f.write(zf.read(info))
# NOTE: very important to reduce the size of the object
self.ws_ckp = None
def __str__(self) -> str:
return f"Workspace[{self.workspace_path=}" + (