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 }}
This repository was archived by the owner on Mar 3, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 3, 2026. It is now read-only.
api: storageIssues related to the googleapis/nodejs-storage API.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.
Using GCS in Google Cloud Functions, the number of dependencies matters hugely in order to improve cold starts. I use GCS for one short upload (logging) and it seems like it is hurting my cold start times as it has over a hundred dependencies in total.
+ @google-cloud/[email protected]
added 106 packages from 121 contributors in 7.289s
Are you folks caching your own packages for faster loading or not really?
This is something we're actively looking to fix. Most of those dependencies come in with request, so removing that is somewhat delicate work. We are actively working towards it though :)
api: storageIssues related to the googleapis/nodejs-storage API.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.
Activity
JustinBeckwith commentedon Jun 1, 2018
This is something we're actively looking to fix. Most of those dependencies come in with
request, so removing that is somewhat delicate work. We are actively working towards it though :)lazharichir commentedon Jun 1, 2018
JustinBeckwith commentedon Jun 1, 2018
Yes! We've already moved a few core dependencies over, and it's gone quite well. It's just a lot of work is all.
fhinkel commentedon Jun 14, 2018
Thanks for raising the issue. Closing this as duplicate of googleapis/nodejs-datastore#9
fhinkel commentedon Aug 23, 2018
@JustinBeckwith , why did you re-open this?
JustinBeckwith commentedon Nov 6, 2018
We still have a dependency on request via gcs-resumable-upload. Can you post the results of a npm ls --production?
JustinBeckwith commentedon Nov 6, 2018
Also worth posting a trace using require-so-slow now and from the 1.x release.
JustinBeckwith commentedon Mar 7, 2019
This was fixed in #619 :) On master as of now: