diff options
| author | Pieter Wuille <[email protected]> | 2014-10-16 12:23:50 -0700 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2014-10-16 12:23:50 -0700 |
| commit | 5b9f8425a515739e2149bf5bfb2ae6ed60bfbaf2 (patch) | |
| tree | bacc7dd4d2f77da27499000d6f12655a3f6463f3 /src/leveldb/doc/impl.html | |
| parent | Merge pull request #5082 (diff) | |
| parent | Squashed 'src/leveldb/' changes from 7924331..7d41e6f (diff) | |
| download | discoin-5b9f8425a515739e2149bf5bfb2ae6ed60bfbaf2.tar.xz discoin-5b9f8425a515739e2149bf5bfb2ae6ed60bfbaf2.zip | |
Merge src/leveldb changes for LevelDB 1.18.
Diffstat (limited to 'src/leveldb/doc/impl.html')
| -rw-r--r-- | src/leveldb/doc/impl.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/leveldb/doc/impl.html b/src/leveldb/doc/impl.html index 28817fe0d..6a468be09 100644 --- a/src/leveldb/doc/impl.html +++ b/src/leveldb/doc/impl.html @@ -111,7 +111,7 @@ A compaction merges the contents of the picked files to produce a sequence of level-(L+1) files. We switch to producing a new level-(L+1) file after the current output file has reached the target file size (2MB). We also switch to a new output file when the key -range of the current output file has grown enough to overlap more then +range of the current output file has grown enough to overlap more than ten level-(L+2) files. This last rule ensures that a later compaction of a level-(L+1) file will not pick up too much data from level-(L+2). @@ -151,7 +151,7 @@ compaction cost will be approximately 0.5 second. If we throttle the background writing to something small, say 10% of the full 100MB/s speed, a compaction may take up to 5 seconds. If the user is writing at 10MB/s, we might build up lots of level-0 files -(~50 to hold the 5*10MB). This may signficantly increase the cost of +(~50 to hold the 5*10MB). This may significantly increase the cost of reads due to the overhead of merging more files together on every read. |