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: doc/performance.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,7 @@ cout << doc << endl;
35
35
cout << doc2 << endl;
36
36
```
37
37
38
-
It's not just internal buffers though. The simdjson library reuses the document itself. dom::element, dom::object and dom::array are *references* to the internal document.
38
+
It's not just internal buffers though. The simdjson library reuses the document itself. The dom::element, dom::object and dom::array instances are *references* to the internal document.
39
39
You are only *borrowing* the document from simdjson, which purposely reuses and overwrites it each
40
40
time you call parse. This prevent wasteful and unnecessary memory allocation in 99% of cases where
41
41
JSON is just read, used, and converted to native values or thrown away.
0 commit comments