4 ms·
HTML layout is not super-fast on low-end phones, and due to marketing stupidity those phones have 4-8 slow cores instead of 1-2 fast cores. I imagine Servo coul
by wmf 13y ago
HTML layout is not super-fast on low-end phones, and due to marketing stupidity those phones have 4-8 slow cores instead of 1-2 fast cores. I imagine Servo could do well there.
Drastically changing the HTML standard would take even longer than developing Servo.
- cpeterso 13y ago> due to marketing stupidity those phones have 4-8 slow cores instead of 1-2 fast cores. Beyond marketing, wouldn't more slow cores consume less battery power than fewer fast cores?
- ehsanu1 13y agoYes, this is also part of Servo's strategy apparently: spread work across multiple cores, but each core does less and can be more efficient in terms of power draw. Faster + less battery use in one fell swoop. Though it's not really clear to me why this actually results in an efficiency win over maxing out a single core.
- pcwalton 13y agoThe way I've heard it, as a very imprecise rule of thumb, increasing clock speed scales power consumption quadratically, while adding CPUs increases power consumption linearly. So, very roughly speaking, one 1.6 GHz CPU uses twice as much power as two 800 MHz CPUs.
- cwzwarich 13y agoThe equation for CMOS switching power (as opposed to leakage power) is capacitance * voltage^2 * frequency but the voltage limits the clock frequency. The exact scaling of maximum clock frequency with voltage depends on the circuit and the process, but from taking a glance at the voltage tables it looks like the main cores in current Snapdragons are generally running in the 0.8-1.2v range across their entire frequency range.
- Symmetry 13y agoMost of the power differences between cores these days isn't in terms of clock speeds but in terms of extra structures that cause more instruction to be executed each cycle. The rule of thumb involving voltage/speed scaling is that your power use is indeed the square of your performance more or less when you're in a reasonable region. However, a relatively simple in-order core like an ARM A7 might also only take 1/4 the energy to execute a given instruction of a complex out-or-order core like an ARM A15 even when both are clocked at 1 GHz on the same process.
- auvrw 13y ago> Though it's not really clear to me why this actually results in an efficiency win over maxing out a single core. i heard the whole multiple core thing is spurred in part by manufacturers trying to increase fab yield: if one of the cores on a multi-core chip is bad, it can still be sold, albeit at a lower price, rather than thrown out.
- wmf 13y agoIf apps were parallel, yes. But most of them aren't.
- reubenmorais 13y agoIf Servo works, most* of the Web will be parallel. * This is probably too optimistic.
- userbinator 13y agoI'd like to see a memory usage comparison with Servo, since mobile devices have far less memory than desktops. On the other hand, I believe that HTML layout can be done, using only a single thread, much faster and with far less memory than current mainstream browsers do, by greatly simplifying the code (i.e. remove excessive use of abstraction, using different data structures, etc.) Not exactly the same, but along the same lines as, this related item that appeared here a few days ago: https://news.ycombinator.com/item?id=7457674 https://news.ycombinator.com/item?id=7457674
- pcwalton 13y agoYou'd be surprised: it's not that easy to beat existing browser engines. The IE trick you mention is pretty trivial. That said, it is possible to win, and one of the great benefits of Servo is that its data structures are simpler than other browser engines' in many ways. But it's not as easy as you think.