W3C home > Mailing lists > Public > public-web-perf@w3.org > July 2011

Re: [Efficient Script Yielding] - Clamping

From: Ian Hickson <ian@hixie.ch>
Date: Sat, 2 Jul 2011 17:25:24 +0000 (UTC)
To: Kyle Simpson <getify@gmail.com>
cc: public-web-perf@w3.org
Message-ID: <Pine.LNX.4.64.1107021724550.20871@ps20323.dreamhostps.com>
On Sat, 2 Jul 2011, Kyle Simpson wrote:
>
> Would it be possible to resolve these issues by specifying that if 
> setImmediate() is called raw (that is, not from inside a timer handler), 
> then it basically has no clamping and is ASAP, but if it's called from 
> inside a timer handler (setTimeout, setInterval, setImmediate, etc), 
> then it's ok to clamp it?

How would this differ from setTimeout(..., 0) ?

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Saturday, 2 July 2011 17:25:57 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:04:31 UTC