docs(docs): V1-2.1 the size guard's number walk is linear
This commit is contained in:
1 parent
538d10369f
commit
f9e40ba6aa
1 file changed
+3
-2
@@ -1567,8 +1567,9 @@ of the document's JSON text in one form, the same for every layer:
|
|||||||
cap + 1, multi-byte and astral characters, a dense document, numbers that
|
cap + 1, multi-byte and astral characters, a dense document, numbers that
|
||||||
JavaScript prints with an exponent); the core's size tests of V1-2.2 reuse
|
JavaScript prints with an exponent); the core's size tests of V1-2.2 reuse
|
||||||
them.
|
them.
|
||||||
- The numbers' printed lengths are summed first, one number at a time, and
|
- The numbers' printed lengths are summed first (one linear walk, each number
|
||||||
the whole text is built only once they fit the cap: a small payload of
|
added in turn), and the whole text is built only once they fit the cap: a
|
||||||
|
small payload of
|
||||||
numbers with huge exponents (`1e131071` prints 131 072 digits) answers
|
numbers with huge exponents (`1e131071` prints 131 072 digits) answers
|
||||||
`document.too_large`, never an out-of-memory error.
|
`document.too_large`, never an out-of-memory error.
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user