CPU expensive javascript
I plan to replicate the statistics javascript from BBC News , but I'm intrigued by the CPU usage of that script (after you press the Start button). Can be an adding script so expensive? Can you tell me why that script is so CPU expensive? I'm new to javascript but i think that simple arithmetic operations are consuming too much client CPU. Is that ok? The sheer amount of numbers being increased are the source of the high CPU usage. On my AMD Phenom II X2, it runs up about 19% of CPU on Firefox when running it. The source of that page is actually http://www.realtimestatistics.org/ , and if you