[webkit-dev] setTimeout as browser speed throttle
Geoffrey Garen
ggaren at apple.com
Tue Sep 30 12:58:15 PDT 2008
> Or there is option 3:
>
> 3) Restore the clamp for setTimeout and setInterval to 10ms for
> compatibility, and add a new setHighResTimer API that does not have
> any lower bound.
I'd like to tweak this suggestion a bit:
Let's make this new timer API object-oriented, so it can be both less
slow and less crazy than setTimeout / setInterval. There are many
"Timer" APIs in open source JavaScript libraries on which we could
base a new API.
Perhaps a Timer object would always be high resolution, or perhaps it
would have an "isHighResolution" bit.
Cheers,
Geoff
More information about the webkit-dev
mailing list