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
Currently, _refresh_cache is called as part of a lot of methods to ensure the local cache is up-to-date.
Unfortunately, _refresh_cache makes a whole bunch of network requests to fetch metadata from the cloud storage service. In fact, it looks like a run through _refresh_cache that doesn't download a new copy still needs to make 4 of these requests, while a run through that does download makes a total of 6 requests. On my current internet connection, one of these requests is 350-400 ms. This means cloud paths may take a minimum of 1-2 sec for doing any method that hits _refresh_cache for a file that exists in cloud storage, no matter how small the file is.
Currently,
_refresh_cache
is called as part of a lot of methods to ensure the local cache is up-to-date.Unfortunately,
_refresh_cache
makes a whole bunch of network requests to fetch metadata from the cloud storage service. In fact, it looks like a run through_refresh_cache
that doesn't download a new copy still needs to make 4 of these requests, while a run through that does download makes a total of 6 requests. On my current internet connection, one of these requests is 350-400 ms. This means cloud paths may take a minimum of 1-2 sec for doing any method that hits_refresh_cache
for a file that exists in cloud storage, no matter how small the file is.cloudpathlib/cloudpathlib/cloudpath.py
Lines 612 to 650 in 8b230c3
The text was updated successfully, but these errors were encountered: