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
We're currently loading two files for each cached remote file.
One file contains the CachedUrlMetadata:
/// Cached metadata about a url.#[derive(Serialize,Deserialize)]pubstructCachedUrlMetadata{pubheaders:HeadersMap,puburl:String,#[serde(default = "SystemTime::now")]pubnow:SystemTime,}
The other file contains the actual remote file source text.
We store them separately, which means we have to do two file reads per remote file when loading.
If we stored them together in the same file, then we could reduce the number of file reads we have to do from two to one per file.
This has some implications for deno info --json because we expose the "local" file. Related #17703
The text was updated successfully, but these errors were encountered:
dsherret
changed the title
Consider storing remote cache metadata in same file as remote file text
Consider storing remote file cache metadata in same file as text
Feb 10, 2023
We're currently loading two files for each cached remote file.
One file contains the
CachedUrlMetadata
:The other file contains the actual remote file source text.
We store them separately, which means we have to do two file reads per remote file when loading.
If we stored them together in the same file, then we could reduce the number of file reads we have to do from two to one per file.
This has some implications for
deno info --json
because we expose the "local" file. Related #17703The text was updated successfully, but these errors were encountered: