json-as 0.5.58 → 0.5.60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/package.json +1 -1
- package/transform/package.json +1 -1
- package/transform/src/index.ts +3 -1
package/README.md
CHANGED
|
@@ -75,8 +75,8 @@ Below are benchmark results comparing JavaScript, WAVM (WebAssembly Virtual Mach
|
|
|
75
75
|
|
|
76
76
|
JavaScript Results
|
|
77
77
|
|
|
78
|
-
```
|
|
79
78
|
NodeJS v20.5.1 - TinyBench v2.5.0 (V8)
|
|
79
|
+
```
|
|
80
80
|
┌───────────────────────────┬───────────────┐
|
|
81
81
|
│ Task Name │ ops / sec │
|
|
82
82
|
├───────────────────────────┼───────────────┤
|
|
@@ -91,8 +91,8 @@ NodeJS v20.5.1 - TinyBench v2.5.0 (V8)
|
|
|
91
91
|
|
|
92
92
|
AssemblyScript Results
|
|
93
93
|
|
|
94
|
-
```
|
|
95
94
|
WAVM v0.0.0-prerelease - as-bench v0.0.0-alpha (LLVM)
|
|
95
|
+
```
|
|
96
96
|
┌───────────────────────────┬───────────────┐
|
|
97
97
|
│ Task Name │ ops / sec │
|
|
98
98
|
├───────────────────────────┼───────────────┤
|
|
@@ -105,8 +105,8 @@ WAVM v0.0.0-prerelease - as-bench v0.0.0-alpha (LLVM)
|
|
|
105
105
|
└───────────────────────────┴───────────────┘
|
|
106
106
|
```
|
|
107
107
|
|
|
108
|
-
```
|
|
109
108
|
Wasmtime v11.0.1 - as-bench v0.0.0-alpha (Cranelift)
|
|
109
|
+
```
|
|
110
110
|
┌───────────────────────────┬───────────────┐
|
|
111
111
|
│ Task Name │ ops / sec │
|
|
112
112
|
├───────────────────────────┼───────────────┤
|
package/package.json
CHANGED
package/transform/package.json
CHANGED
package/transform/src/index.ts
CHANGED
|
@@ -174,8 +174,10 @@ class AsJSONTransform extends BaseVisitor {
|
|
|
174
174
|
`;
|
|
175
175
|
}
|
|
176
176
|
|
|
177
|
+
// Odd behavior here... When pairing this transform with asyncify, having @inline on __JSON_Set_Key<T> with a generic will cause it to freeze.
|
|
178
|
+
// Binaryen cannot predict and add/mangle code when it is genericed.
|
|
177
179
|
const setKeyFunc = `
|
|
178
|
-
|
|
180
|
+
__JSON_Set_Key<T>(key: T, data: string, val_start: i32, val_end: i32): void {
|
|
179
181
|
${
|
|
180
182
|
// @ts-ignore
|
|
181
183
|
this.currentClass.setDataStmts.join("")
|