Skip to content
This repository has been archived by the owner on Aug 15, 2018. It is now read-only.

[TAG] Uniform Weights Per Operation? #18

Open
slightlyoff opened this issue Apr 29, 2017 · 1 comment
Open

[TAG] Uniform Weights Per Operation? #18

slightlyoff opened this issue Apr 29, 2017 · 1 comment

Comments

@slightlyoff
Copy link

From TAG feedback issue

@triblondon notes that the model the API presents weights all silent pushes (e.g.) to be equal. Do we have confidence that this will always be true? Has a model been considered in which the developer requests some budget for an operation and is then limited to that budget (e.g., execution time)?

@beverloo
Copy link
Member

The getCost() method returns the maximum cost of an operation. The actual cost may be lower depending on device conditions (charging, screen state), network conditions and, as you say, details of executing the actual operation.

The amount of budget withdrawn when reserving or otherwise using it does depend on these conditions, and has a note at the definition of the concept of reserving budget:

https://wicg.github.io/budget-api/#reserve-budget

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants