Commit 73bcd58
authored
As of this writing, initializing the default hasher for `HashMap` requires
calling `wasi_snapshot_preview1:random_get`, which requires initializing the
`wasi_snapshot_preview1` adapter when targeting `wasm32-wasip2` and later, and
that's expensive enough that we'd prefer to avoid it for apps which otherwise
make no use of the adapter.
Signed-off-by: Joel Dice <[email protected]>
1 parent 5ab27c5 commit 73bcd58
1 file changed
+10
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
72 | 79 | | |
73 | 80 | | |
74 | 81 | | |
| |||
89 | 96 | | |
90 | 97 | | |
91 | 98 | | |
92 | | - | |
| 99 | + | |
93 | 100 | | |
94 | 101 | | |
95 | 102 | | |
| |||
0 commit comments