New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 622376 link

Starred by 4 users

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 3
Type: Bug



Sign in to add a comment

Lazy load downloads history

Project Member Reported by asanka@chromium.org, Jun 22 2016

Issue description

Currently each time a new download starts, the entire downloads history is loaded into memory. This is wasteful since most users on desktop don't open chrome://downloads and hence won't even see the list of downloads.

Instead, let's not load the entire downloads history each time DownloadManager is created.

If we want to query a specific subset of downloads, then we should do so using the downloads history DB selectively. Downloads queries should be made against the history DB.

chrome://downloads should pass the memory cost of keeping downloads history around into the renderer process hosting the chrome://downloads page. I.e. aside from active downloads, all other downloads are passed through the browser without being retained.
 
Does this impact Android as well?

Comment 2 by asanka@chromium.org, Jun 23 2016

It does. Currently automatic resumption requires loading the entire downloads history, which is a waste. We only need to restore the resumption candidates.

Comment 3 by asanka@chromium.org, Dec 21 2016

Cc: benjhayden@chromium.org cbentzel@chromium.org
 Issue 101498  has been merged into this issue.
Project Member

Comment 4 by sheriffbot@chromium.org, Mar 9 2018

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available. If you change it back, also remove the "Hotlist-Recharge-Cold" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Owner: qin...@chromium.org
Status: Assigned (was: Untriaged)
Probably beyond this, we want to see if we can just not keep the history in memory *at all*.  This would require asynchronous access to the APIs.  If this isn't feasible we can see if we can only load a small amount of memory for each download instead of the full item.

Sign in to add a comment