Skip to content

Add module caching#485

Merged
davejcameron merged 1 commit intomainfrom
cache-compiled-module
Jun 16, 2025
Merged

Add module caching#485
davejcameron merged 1 commit intomainfrom
cache-compiled-module

Conversation

@davejcameron
Copy link
Contributor

@davejcameron davejcameron commented Jun 10, 2025

Use disk-based caching of compiled modules

By default it stores the files in the following locations

BytecodeAlliance.wasmtime

/// |Platform | Value                                                                 | Example                                             |
/// | ------- | --------------------------------------------------------------------- | --------------------------------------------------- |
/// | Linux   | `$XDG_CACHE_HOME`/`_project_path_` or `$HOME`/.cache/`_project_path_` | /home/alice/.cache/barapp                           |
/// | macOS   | `$HOME`/Library/Caches/`_project_path_`                               | /Users/Alice/Library/Caches/com.Foo-Corp.Bar-App    |
/// | Windows | `{FOLDERID_LocalAppData}`\\`_project_path_`\\cache                    | C:\Users\Alice\AppData\Local\Foo Corp\Bar App\cache |

By default compiled modules are cached for 1 hour.

@davejcameron davejcameron merged commit bdace59 into main Jun 16, 2025
10 checks passed
@davejcameron davejcameron deleted the cache-compiled-module branch June 16, 2025 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants