**diff options**

author | Bryan Newbold <bnewbold@robocracy.org> | 2018-01-03 11:31:15 +0100 |
---|---|---|

committer | Bryan Newbold <bnewbold@robocracy.org> | 2018-01-10 20:25:11 -0800 |

commit | e5ef7a3bdb5882d90a7ca9cea3aa3a4cc54a3e72 (patch) | |

tree | f40ffe22a24157aad69f825c6320089f81801b91 | |

parent | 5b37b1b8bd0615c1d487abfc4b1543dfdacbfd36 (diff) | |

download | dat-docs-e5ef7a3bdb5882d90a7ca9cea3aa3a4cc54a3e72.tar.gz dat-docs-e5ef7a3bdb5882d90a7ca9cea3aa3a4cc54a3e72.zip |

yet more grammar tweaks

-rw-r--r-- | papers/sleep.md | 4 |

1 files changed, 2 insertions, 2 deletions

diff --git a/papers/sleep.md b/papers/sleep.md index d7349f4..5797360 100644 --- a/papers/sleep.md +++ b/papers/sleep.md @@ -175,7 +175,7 @@ The above method illustrates how to resolve a chunk position index to a byte off - First, you start by calculating the current Merkle roots - Each node in the tree (including these root nodes) stores the aggregate file size of all byte sizes of the nodes below it. So the roots cumulatively will describe all possible byte ranges for this repository. - Find the root that contains the byte range of the offset you are looking for and get the node information for all of that nodes children using the Index Lookup method, and recursively repeat this step until you find the lowest down child node that describes this byte range. -- The chunk described by this child node will contain the byte range you are looking for. You can use the `byteOffset` property in the `Stat` metadata object to seek into the right position in the content for the start of this chunk. +- The chunk described by this child node will contain the byte range you are looking for. You can use the `byteOffset` field in the `Stat` metadata object to seek to the correct position in the content file for the start of this chunk. ##### Metadata Overhead @@ -276,7 +276,7 @@ The tuples at entry `1` above are `[1,0]` because the relative child tuples are 6 - [11 11 11 11] ``` -Using this scheme, to represent 32 bytes of data it takes at most 8 bytes of Index. In this example it compresses nicely as its all contiguous ones on disk, similarly for an empty bitfield it would be all zeroes. +Using this scheme, it takes at most 8 bytes of Index to represent 32 bytes of data. In this example the Index can compresses well because it consists of all one bits. Similarly, an empty bitfield is all zero bits. If you write 4GB of data using on average 64KB data chunk size, your bitfield will be at most 32KB. |