Commit c1f5bb19 authored by Kirill Smelkov's avatar Kirill Smelkov

X notes on why lazy-invalidate approach was taken

parent d36b171f
...@@ -343,6 +343,13 @@ package main ...@@ -343,6 +343,13 @@ package main
// XXX zconn(s) for historical state // XXX zconn(s) for historical state
// XXX serving read from @<rev>/data // XXX serving read from @<rev>/data
// //
// XXX(integrate place=?) emitting whole δR right at transaction-boundary time
// requires to keep whole blktab index in tree. Even though from space point of
// view it is somewhat acceptable (~ 0.01% of whole-file data size, i.e. ~
// 128MB of index for ~ 1TB of data), it is not good from time overhead point
// of view - initial open of a file this way would be potentially very slow.
// -> we took the approach where we invalidate lazily only actual block access.
//
// XXX(integrate place=?) ZData - ne need to keep track -> ZBlk1 is always // XXX(integrate place=?) ZData - ne need to keep track -> ZBlk1 is always
// marked as changed on blk data change. // marked as changed on blk data change.
// //
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment