Merge branch 'develop' into fix-self-aliasing-pointer-patch
Signed-off-by: Niels Lohmann <mail@nlohmann.me>
This commit is contained in:
10 files changed
+131
-22
No files matched your search
@@ -23,6 +23,10 @@ Linear in [`node_count()`](node_count.md) plus the length of the decoded strings
|
||||
|
||||
## Notes
|
||||
|
||||
The node index of a small document (an estimate of up to 1024 nodes, which is up to about 4 KiB of minified text) is
|
||||
allocated together with the document's header, so that parsing needs one allocation. That part cannot be released
|
||||
separately: `shrink_to_fit()` only trims a node index that has its own allocation, and the decoded strings.
|
||||
|
||||
!!! warning "Invalidates views"
|
||||
|
||||
Unlike moving the document, `shrink_to_fit()` **invalidates every view taken from this document before the
|
||||
|
||||
Reference in new issue
Block a user