New issue
Advanced search Search tips

Issue 611733 link

Starred by 3 users

Issue metadata

Status: Untriaged
Owner: ----
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

Block align simple cache IO

Project Member Reported by gavinp@chromium.org, May 13 2016

Issue description

Currently, 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.
 
Project Member

Comment 1 by sheriffbot@chromium.org, May 15 2017

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
This issue has been available for more than 365 days, and should be re-evaluated. Please re-triage this issue.
The Hotlist-Recharge-Cold label is applied for tracking purposes, and should not be removed after re-triaging the issue.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
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