You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
9.9.0: Azure/GCS SDKs loaded for every storage driver add ~40 MB heap and ~10% CPU on streaming paths #295
9.9.0 regression from the Azure Blob driver (#280): lib/storage.ts imports @azure/storage-blob, @azure/identity and @google-cloud/storage at the top level, so every server loads all three SDKs whatever STORAGE_DRIVER is. That adds ~40 MB of live heap to an idle S3 or filesystem server, and every GC cycle walks it.
Idle nodejs_heap_size_used_bytes after startup (filesystem driver, one worker): 109 MB on dev, 68 MB with the SDKs imported lazily (9.8.0 was 69 MB).
Cold first restores of unmerged entries: 0.096 CPU-s per hit with eager imports, 0.0835 with lazy imports (9.8.0: 0.0831).
Mixed workload with direct downloads off: CPU per hit +10.5% over 9.8.0 with eager imports, −1.7% with lazy imports.
Wall time, latencies, event-loop lag and errors are unchanged in all of these.
Branch: chenrui333:perf/lazy-storage-sdks (review copy). It is one commit on dev (6ae06c2). Each SDK is now imported inside its adapter's fromEnv, and only types stay as static imports. pnpm test:run passes with the filesystem, azblob and gcs drivers. Fork CI is green, and the Codex review found nothing.
As with #292, I can't open PRs here; see my comment there about cherry-picking.
Activity