Block align simple cache IO |
|
Issue descriptionCurrently, the simple cache calls File::Read() / File::Write() directly for very small structures, without paying attention to block alignment. This can cause significant slowdowns, especially the updating writes of headers. Let's use the (small) amount of internal buffering required to block align data as we write it and read it.
,
May 15 2017
FWIW, two approaches that may help wit this: 1) Pre-reading smaller files in one gulp (crbug/719979) 2) Changing the file format to not have a header, just the footer, and include the full key in the footer. That will make stream 1 reads all nicely aligned. (Modulo the truncate dance adding stuff at the end, which is mostly solvable) stream 2/_1 OTOH, gets messier if you do that |
|
►
Sign in to add a comment |
|
Comment 1 by sheriffbot@chromium.org
, May 15 2017Status: Untriaged (was: Available)