Home
last modified time | relevance | path

Searched refs:cache (Results 1 – 25 of 46) sorted by relevance

12

/wasmtime-44.0.1/docs/
H A Dcli-cache.md20 [cache]
59 Compression level used when a new cache file is being written by the [cache system].
69 Compression level used when the [cache worker] decides to recompress a cache file.
80 One of the conditions for the [cache worker] to recompress a cache file
91 When the [cache worker] is notified about a cache file being updated by the [cache system]
105 When the [cache worker] decides to recompress a cache file, it makes sure that
205 [cache system]: #how-does-the-cache-work
206 [cache worker]: #how-does-the-cache-work
210 How does the cache work?
215 and configuring the cache.
[all …]
H A Dexamples-fast-compilation.md12 Wasmtime can be configured to use a cache, so that if you attempt to compile a
18 * [`wasmtime::Config::cache`](https://docs.rs/wasmtime/latest/wasmtime/struct.Config.html#method.ca…
/wasmtime-44.0.1/crates/cache/src/
H A Dlib.rs138 pub struct ModuleCacheEntry<'cache>(Option<ModuleCacheEntryInner<'cache>>);
140 struct ModuleCacheEntryInner<'cache> {
142 cache: &'cache Cache, field
147 impl<'cache> ModuleCacheEntry<'cache> {
149 pub fn new(compiler_name: &str, cache: Option<&'cache Cache>) -> Self { in new()
150 Self(cache.map(|cache| ModuleCacheEntryInner::new(compiler_name, cache))) in new()
154 fn from_inner(inner: ModuleCacheEntryInner<'cache>) -> Self { in from_inner()
222 impl<'cache> ModuleCacheEntryInner<'cache> {
223 fn new(compiler_name: &str, cache: &'cache Cache) -> Self { in new()
259 Self { root_path, cache } in new()
[all …]
H A Dtests.rs52 let cache = Cache::new(cache_config.clone()).unwrap(); in test_write_read_cache() localVariable
63 let entry1 = ModuleCacheEntry::from_inner(ModuleCacheEntryInner::new(compiler1, &cache)); in test_write_read_cache()
64 let entry2 = ModuleCacheEntry::from_inner(ModuleCacheEntryInner::new(compiler2, &cache)); in test_write_read_cache()
/wasmtime-44.0.1/crates/test-programs/artifacts/src/
H A Dlib.rs54 let mut cache = CACHE.lock().unwrap(); in cache_store() localVariable
55 let cache = cache.get_or_insert_with(HashMap::new); in cache_store() localVariable
56 cache.get(key).map(|s| s.to_vec().into()) in cache_store()
60 let mut cache = CACHE.lock().unwrap(); in cache_store() localVariable
61 let cache = cache.get_or_insert_with(HashMap::new); in cache_store() localVariable
62 cache.insert(key.to_vec(), value); in cache_store()
/wasmtime-44.0.1/crates/explorer/src/
H A Dindex.js17 this.cache = new Map();
23 let v = this.cache.get(key);
27 this.cache.delete(key);
30 if (this.cache.size > this.cache.maxSize) {
32 this.cache.delete(this.cache.keys().next().value);
35 this.cache.set(key, v);
/wasmtime-44.0.1/crates/cli-flags/
H A DCargo.toml8 documentation = "https://docs.rs/wasmtime-cache/"
30 cache = ["wasmtime/cache"]
/wasmtime-44.0.1/crates/wizer/tests/all/
H A Dmake_linker.rs11 .map(|cache| config.cache(Some(cache))) in run_wasm()
/wasmtime-44.0.1/crates/cache/
H A DCargo.toml2 name = "wasmtime-internal-cache"
8 documentation = "https://docs.rs/wasmtime-cache/"
/wasmtime-44.0.1/crates/wasmtime/src/engine/
H A Dserialization.rs702 .cache(Some(Cache::from_file(Some(&config_path))?)); in cache_accounts_for_opt_level()
707 .cache in cache_accounts_for_opt_level()
718 .cache(Some(Cache::from_file(Some(&config_path))?)); in cache_accounts_for_opt_level()
722 .cache in cache_accounts_for_opt_level()
734 .cache(Some(Cache::from_file(Some(&config_path))?)); in cache_accounts_for_opt_level()
738 .cache in cache_accounts_for_opt_level()
750 .cache(Some(Cache::from_file(Some(&config_path))?)); in cache_accounts_for_opt_level()
754 .cache in cache_accounts_for_opt_level()
829 cfg.cache(Some(Cache::from_file(Some(&config_path))?)); in components_are_cached()
833 .cache in components_are_cached()
/wasmtime-44.0.1/crates/c-api/artifact/
H A DCargo.toml30 'cache',
52 cache = ["wasmtime-c-api/cache"]
/wasmtime-44.0.1/crates/cranelift/
H A DCargo.toml44 incremental-cache = ["cranelift-codegen/incremental-cache"]
/wasmtime-44.0.1/examples/
H A Dfast_compilation.rs13 config.cache(Some(Cache::from_file(None)?)); in main()
/wasmtime-44.0.1/crates/c-api/src/
H A Dconfig.rs235 Cache::from_file(None).map(|cache| c.config.cache(Some(cache))) in wasmtime_config_cache_config_load()
239 Cache::from_file(Some(&Path::new(s))).map(|cache| c.config.cache(Some(cache))) in wasmtime_config_cache_config_load()
/wasmtime-44.0.1/crates/c-api/
H A DCargo.toml48 cache = ["wasmtime/cache"]
/wasmtime-44.0.1/
H A D.gitignore24 examples/.cache
H A DCargo.toml47 wasmtime-cache = { workspace = true, optional = true }
273 wasmtime-cache = { path = "crates/cache", version = "=44.0.1", package = 'wasmtime-internal-cache' }
494 "cache",
569 cache = ["dep:wasmtime-cache", "wasmtime-cli-flags/cache"]
599 config = ["cache"]
/wasmtime-44.0.1/crates/wasmtime/
H A DCargo.toml23 wasmtime-cache = { workspace = true, optional = true }
135 'cache',
187 # Enables support for incremental compilation cache to be enabled in `Config`.
188 incremental-cache = ["wasmtime-cranelift?/incremental-cache", "std"]
204 # Enables support for automatic cache configuration to be enabled in `Config`.
205 cache = ["dep:wasmtime-cache", "std"]
/wasmtime-44.0.1/crates/test-programs/artifacts/
H A DCargo.toml14 wasmtime = { workspace = true, features = ['incremental-cache', 'cranelift', 'component-model'] }
/wasmtime-44.0.1/.github/actions/install-cargo-vet/
H A Daction.yml13 - uses: actions/cache@v5
/wasmtime-44.0.1/.github/workflows/
H A Dcargo-audit.yml14 - uses: actions/cache@v5
/wasmtime-44.0.1/crates/wasmtime/src/runtime/
H A Ddebug.rs423 let (cache, registry) = store.frame_data_cache_mut_and_registry(); in exit_frame()
424 let frames = cache.lookup_or_compute(registry, cursor.frame()); in exit_frame()
469 let (cache, registry) = store in parent()
473 let frames = cache.lookup_or_compute(registry, parent.cursor.frame()); in parent()
493 let (cache, registry) = store.frame_data_cache_mut_and_registry(); in frame_data()
494 let frames = cache.lookup_or_compute(registry, self.cursor.frame()); in frame_data()
/wasmtime-44.0.1/src/commands/
H A Dexplore.rs53 config.cache(None); // cache does not emit clif in execute()
/wasmtime-44.0.1/crates/c-api/cmake/
H A Dfeatures.cmake31 feature(cache ON)
/wasmtime-44.0.1/crates/cli-flags/src/
H A Dlib.rs234 pub cache: Option<bool>,
841 if self.codegen.cache != Some(false) { in config()
843 let cache = match &self.codegen.cache_config { in config() localVariable
847 config.cache(Some(cache)); in config()
850 if self.codegen.cache == Some(true) { in config()

12