You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-4Lines changed: 7 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,12 +17,12 @@ Currently the Nim standard module first parses or serializes json into JsonNodes
17
17
18
18
Another speed up comes from not using `StringStream`. Stream has a function dispatch overhead because it has to be able to switch between `StringStream` or `FileStream` at runtime. Jsony skips the overhead and just directly reads or writes to memory buffers.
19
19
20
-
Another speed up comes from parsing and readings its own numbers directly from memory buffer. This allows it to by pass`string` allocations that `parseInt` or `$` create.
20
+
Another speed up comes from parsing and readings its own numbers directly from memory buffer. This allows it to bypass`string` allocations that `parseInt` or `$` create.
21
21
22
22
### Parse speed.
23
23
```
24
24
name ............................... min time avg time std dv times
25
-
treeform/jsony ..................... 6.311 ms 9.688 ms ±3.301 x100
25
+
treeform/jsony ..................... 6.724 ms 12.047 ms ±3.694 x100
26
26
status-im/nim-json-serialization ... 7.119 ms 14.276 ms ±2.033 x100
27
27
nim std/json ...................... 24.141 ms 38.741 ms ±5.417 x100
28
28
planetis-m/eminim ................. 10.974 ms 18.355 ms ±3.994 x100
@@ -43,11 +43,14 @@ Note: If you find a faster nim json parser or serializer let me know!
43
43
## Can parse or serializer most types:
44
44
45
45
* numbers and strings
46
+
* seq and arrays
46
47
* objects and ref objects
47
48
* enums
48
49
* tuples
49
-
* seq and arrays
50
-
* tables
50
+
* characters
51
+
*`HashTable`s and `OrderedTable`s
52
+
*`HashSet`s and `OrderedSet`s
53
+
* json nodes
51
54
* and `parseHook()` enables you to parse any type!
0 commit comments