2 ms·
It's easier to optimize a description of what the results should be than to optimize a description of how to calculate the results. If you say "give me the fir
by jrockway 16y ago
It's easier to optimize a description of what the results should be than to optimize a description of how to calculate the results. If you say "give me the first 10 prime numbers", that's easy to calculate efficiently . If you write out the Sieve of Eratosthenes, then that's harder to make efficient.
Similarly, it's easier to optimize CSS rendering than it is to optimize arbitrary JavaScript programs.
- krosaen 16y agohmm, good point, I hadn't thought that this would be for optimization purposes. but is it premature optimization if the css way is fuglier and the js way is fast enough to get the desired framerate on modern browsers? would like to see some stats.