json-as 0.5.28 → 0.5.29
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 +5 -3
- package/package.json +1 -1
- package/transform/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
# AS-JSON
|
|
2
2
|

|
|
3
3
|

|
|
4
|
+
|
|
5
|
+
Probably the fastest JSON parser for AssemblyScript with many more optimizations coming down the pipeline.
|
|
4
6
|
## Installation
|
|
5
7
|
|
|
6
8
|
```bash
|
|
@@ -75,7 +77,7 @@ const parsed = JSON.parse<Player>(stringified);
|
|
|
75
77
|
|
|
76
78
|
# Notes
|
|
77
79
|
|
|
78
|
-
Performance
|
|
80
|
+
Performance exceeds JavaScript JSON implementation by an average of 230% but this decreases with larger data packets.
|
|
79
81
|
|
|
80
82
|
## Performance
|
|
81
83
|
|
|
@@ -87,9 +89,9 @@ Performance is nearly equal to the JavaScript JSON implementation which is in C+
|
|
|
87
89
|
|
|
88
90
|
**Deserialize Array (int[]):** ~2.8m ops/s
|
|
89
91
|
|
|
90
|
-
**Serialize String (5):** ~
|
|
92
|
+
**Serialize String (5):** ~4.2m ops/s
|
|
91
93
|
|
|
92
|
-
**Deserialize String (5):** ~
|
|
94
|
+
**Deserialize String (5):** ~12m ops/s
|
|
93
95
|
|
|
94
96
|
## Issues
|
|
95
97
|
|
package/package.json
CHANGED