3 ms·
>Servo and Webrender[0] will completely shake up the browser landscape, and will allow web apps to match (maybe even surpass?) native mobile apps in terms of re
by coldtea 10y ago
>Servo and Webrender[0] will completely shake up the browser landscape, and will allow web apps to match (maybe even surpass?) native mobile apps in terms of rendering performance.
Unless Firefox (and Servo) gets it GUI to not feel alien and clunky, it wont matter if it has a faster rendering engine. Rendering engines are plenty fast as it is anyway, it's CPU use and battery impact that matters to users. And when performance does matter, it's mostly Javascript performance, which Servo doesn't address.
It also wont matter for mobile, since Android will still keep Chrome browser, and iOS will still keep Mobile Safari -- they're both made by the platform's creators.
- majewsky 10y ago> it wont matter if it has a faster rendering engine [...] its CPU use and battery impact that matters to users You make it sound like these are two orthogonal aspects. When rendering is faster, CPU usage obviously goes down. As does battery impact, since the CPU can go back to a sleep state faster.
- coldtea 10y ago>You make it sound like these are two orthogonal aspects. When rendering is faster, CPU usage obviously goes down. Only as much as its the rendering, and not the core logic that consumes the CPU. Degenerative case: a page with a single text entry field, where you enter a number and it calculates e.g. the fibonnaci sequence up to that number or factor primes etc. There's hardly any rendering, but lots of CPU.
- Klathmon 10y agoActually JS performance isn't the bottleneck in the vast majority of cases now. JS is more than fast enough, it's the DOM that's slow. And that is what Servo is going to help with. And as for Firefox on Android, I have plenty of hope for it. I'm seeing more and more people switch to alternative browsers for speed (the most common one is samsung's "browser" which everyone says is "super fast" but really only is a weird hack to make scrolling smooth which breaks a few standards). Ios is another story, but at least on android if they make a damn good product, people will use it.
- pcwalton 10y ago> Rendering engines are plenty fast as it is anyway, it's CPU use and battery impact that matters to users. That's at odds with almost every single sentiment I've seen regarding native vs. Web apps. Take one look at any HN thread about the two. > And when performance does matter, it's mostly Javascript performance, which Servo doesn't address. If that were true, then there wouldn't be a performance differential between native and Web, since Objective-C and Dalvik are slower than modern JS engines. (Look at how method call dispatch works in Objective-C!) Besides, a lot of what shows up as "JS performance" in a profiler is actually blocking on DOM operations. With off-main-thread layout, these operations can be done in the background, resulting in improved DOM performance.
- camgunz 10y agoModern JS is pretty fast yeah, but I still don't think it rivals Objective-C does it? If we stipulate it's 1/2 as fast as Swift, it's still much faster than v8 on the benchmarks game [1]. Can you be trickier with JS code than those toy programs are? [1] http://benchmarksgame.alioth.debian.org/u64q/compare.php?lang=swift&lang2=node http://benchmarksgame.alioth.debian.org/u64q/compare.php?lan...
- pcwalton 10y agoObjective-C and Swift are completely different beasts, especially on those kinds of workloads. Idiomatic Objective-C would be much worse than that.
- camgunz 10y agoWell now that I think about it, maybe in the context of your original argument a comparison against Swift makes sense. It's hard for me to see JS ever being competitive with Swift or a similar compiled language.
- coldtea 10y ago>That's at odds with almost every single sentiment I've seen regarding native vs. Web apps. Take one look at any HN thread about the two. If we're talking about e.g. Electron apps, the problem I see mentioned (and felt myself) is almost always the memory hogging, the GC-pauses, the battery impact and such -- not the rendering speed. Although, there is talk of getting to 60fps web apps etc. For something like Atom, is the slow redrawing because "DOM is slow" or because "doing the calculations needed for a sizable file, with syntax highlighting regexes, compiler checks, freeing memory, etc takes lots of processing time"? >If that were true, then there wouldn't be a performance differential between native and Web, since Objective-C and Dalvik are slower than modern JS engines. (Look at how method call dispatch works in Objective-C!) That's not entirely true, as Objective-C dispatch was thoroughly optimized [1]. Besides, the performance differential is also in the time to process logic (and the network latency) which you don't address. And of course, aside from rendering (which often is just "show a few forms, buttons and lists" for most apps) a part of the heavy logic in Objective-C for lots of tasks is done in C or C++ frameworks at much faster speeds than modern JS engines. [1] https://www.mikeash.com/pyblog/performance-comparisons-of-common-operations-leopard-edition.html https://www.mikeash.com/pyblog/performance-comparisons-of-co...