Skip to content

Commit 8b02fd5

Browse files
committed
perf(pm): remove registry cache hook
1 parent c12fd4c commit 8b02fd5

2 files changed

Lines changed: 0 additions & 20 deletions

File tree

crates/ruborist/src/service/registry.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -670,11 +670,6 @@ impl RegistryClient for UnifiedRegistry {
670670
&self.registry_url
671671
}
672672

673-
fn cache_version_manifest(&self, name: &str, spec: &str, manifest: Arc<CoreVersionManifest>) {
674-
self.cache
675-
.set_version_manifest(name.to_string(), spec.to_string(), manifest);
676-
}
677-
678673
async fn fetch_full_manifest(&self, name: &str) -> Result<Arc<FullManifest>, Self::Error> {
679674
match self.resolve_full_manifest(name).await? {
680675
FullManifestResult::Full(manifest) => Ok(manifest),

crates/ruborist/src/traits/registry.rs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -282,21 +282,6 @@ pub trait RegistryClient {
282282
})
283283
}
284284
}
285-
286-
/// Cache a resolved version manifest for later use.
287-
///
288-
/// This method is called by preload to cache (name, spec) -> version_manifest mappings,
289-
/// allowing build phase to directly hit memory cache without traversing full_manifest.
290-
///
291-
/// Default implementation is no-op (no caching).
292-
fn cache_version_manifest(
293-
&self,
294-
_name: &str,
295-
_spec: &str,
296-
_manifest: Arc<CoreVersionManifest>,
297-
) {
298-
// Default: no-op
299-
}
300285
}
301286

302287
/// A simple in-memory registry client for testing.

0 commit comments

Comments
 (0)