New issue
Advanced search Search tips

Issue 895506 link

Starred by 2 users

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Bug



Sign in to add a comment

Latency of navigator.storage.estimate() calls are higher than expected

Project Member Reported by jsb...@chromium.org, Oct 15

Issue description

A customer is reporting that ~44% of calls to estimate() take longer than 100ms to resolve.

We should look into whether there are optimization opportunities. In theory, it should be a hop from the renderer to the browser, making a database query (cached in memory?), and responding via a microtask.

The biggest time sink might be that we're hitting disk to measure actual usage for the origin (if we don't trust the DB value) on demand. Or maybe memory caches aren't warmed, or we're doing something dumb somewhere. Even if we need to hit disk we could kick off an async task to do so earlier (e.g. on navigation).


 

Sign in to add a comment