On Tue, Sep 15, 2009 at 7:04 AM, timeless <span dir="ltr"><<a href="mailto:timeless@gmail.com">timeless@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Mon, Sep 14, 2009 at 10:41 AM, David Bennett<<a href="mailto:ddt@google.com">ddt@google.com</a>> wrote:<br>
> I also don't see<br>
> why, in your particular case, you couldn't make it so that all background<br>
> tasks are 'idle'.<br>
<br>
</div>We could, but the reason we stop scripts is so that the pages don't<br>
kill our battery life. If we sent an idle signal and the page decided<br>
to do something expensive, how would that help?<br>
<br>
Suppose we send an idle message to a page as it goes to the background<br>
and give it a 30s window before we terminate it. Your window needs 35s<br>
to complete its expensive task. You come back to me and say that my<br>
idle notification behavior is broken, because i didn't let you finish<br>
your task (draining my battery).<br>
<br>
We're currently getting complaints from our cellular stack people<br>
about each network connection which causes the radio to have to power<br>
up and down (in fact, they complain that there are two hits or maybe<br>
three: "initial request", "initial response", and "remote closed<br>
connection"). If we tell pages each time they go to the background<br>
using your proposed idle "notification", the scripts will spend power<br>
waking up the radio and then the cellular people will complain even<br>
more.<br>
<br>
Since the reason we stop scripts is to save battery, adding another<br>
chance for scripts to drain the battery (by waking up the radio) is<br>
counter productive at best.<br>
</blockquote></div><br><div>I don't really see why we're still talking about this. If you're stopping scripts, then all of the use cases for this proposal really don't apply to your particular platform. If people want to debate the merits of stopping scripts, this doesn't seem like the right list.</div>