Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cue/interpreter/wasm: remove Wazero global state
We used a global Wazero runtime in order to make use of its compilation cache. Turns out that doesn't work (anymore?) because Wazero compiled modules can only be instantiated once (!). Why have a distinction between compiled and instantiated modules then? Another mystery of Wazero. Wazero does have a more complicated way to share a compilation cache, but we don't make use it it yet. Change-Id: I4428d40a06bcb381a6d35b8f5a52595f2d7d6917 Signed-off-by: Aram Hăvărneanu <aram@mgk.ro> Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1174685 TryBot-Result: CUEcueckoo <cueckoo@gmail.com> Reviewed-by: Roger Peppe <rogpeppe@gmail.com>
- Loading branch information
Showing
2 changed files
with
46 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters