2 ms·
CSS isn't less efficient than a traditional windowing model. In fact, its declarative nature is a big help when adopting legacy content to modern architectures.
by pcwalton 11y ago
CSS isn't less efficient than a traditional windowing model. In fact, its declarative nature is a big help when adopting legacy content to modern architectures. The "WM_PAINT/C++ code that calls GDI" model is not easy to adapt to multicore and GPUs.
This is not to say that the browsers of today are optimally architected, of course. (In fact, I think they're quite suboptimally architected for 2015 hardware. The "it's too easy to fall off the fast paths" problem of HTML/CSS is a symptom of legacy browser architecture, not a problem with the layout/styling model.)