Revenge of the Timers
Join the DZone community and get the full member experience.
Join For Freeafter my earlier post on analyzing javascript timer performance a lot has changed, especially in firefox 3. an excellent patch landed the other day which is giving us some excellent performance improvements - not the least of which is related to timers.
if you remember from before i took a look at how responsive javascript timers were on osx in firefox 2, safari 3, firefox 3, and opera 9. the conclusion, at least for me, was that firefox 3's timers were much improved over firefox 2's, but could stand some improvement.
i filed a couple bugs, relating to the matter:
and to my delight this
new patch
completely resolves all of them. let's take a quick peak at the results. these are the results of doing
setinterval(fn, 0);
in firefox 2, safari 3, firefox 3, and opera 9. firefox 3 is in the bottom-left corner, note the improvement.

the change in quality is startling. it's easy to say that firefox 3 and safari 3 are quite comparable now, in terms of overall timer quality and, if nothing else, a major improvement over the timers in firefox 2.
if you want to try this improvement for yourself feel free to download a nightly of firefox 3 and head on over to the timer test page , i think you'll be quite pleased.
Published at DZone with permission of John Resig. See the original article here.
Opinions expressed by DZone contributors are their own.
Trending
-
Enriching Kafka Applications With Contextual Data
-
Develop Hands-Free Weather Alerts To Ensure Safe Backpacking
-
Creating Scalable OpenAI GPT Applications in Java
-
How To Integrate Microsoft Team With Cypress Cloud
Comments