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: tape.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -122,11 +122,11 @@ Performance consideration: We can skip the content of an array entirely by acces
122
122
JSON objects are represented using two 64-bit tape elements.
123
123
124
124
- The first 64-bit tape element contains the value `('{'<<56) + x` where the payload `x` is 1 + the index of the second 64-bit tape element on the tape.
125
-
- The second 64-bit tape element contains the value `('{' << 56) + x` where the payload `x` contains the index of the first 64-bit tape element on the tape.
125
+
- The second 64-bit tape element contains the value `('}' << 56) + x` where the payload `x` contains the index of the first 64-bit tape element on the tape.
126
126
127
127
In-between these two tape elements, we alternate between key (which must strings) and values. A value could be an object or an array.
128
128
129
-
All the content of the array is located between these two tape elements, including arrays and objects.
129
+
All the content of the object is located between these two tape elements, including arrays and objects.
130
130
131
131
Performance consideration: We can skip the content of an object entirely by accessing the first 64-bit tape element, reading the payload and moving to the corresponding index on the tape.
0 commit comments