Firefox To See A 'Quantum Leap' Improvement In Performance, Security By The End Of 2017

Firefox will soon begin to implement elements of Mozilla’s new research-oriented browser engine, called Servo. The engine has been written from the ground-up in “Rust,” a fast new programming language developed by Mozilla and the open source community that guarantees thread and memory safety.

First Step: Full Electrolysis Adoption And Implementation

Recently, Mozilla started implementing the long-awaited multi-year Electrolysis sandboxing architecture in Firefox. The new architecture puts the user interface and the content of the tabs in separate operating system processes, thus giving each its own resources and sandboxing capabilities. This is unlike Chrome, where each browser page or extension gets its own process, but Mozilla plans to increase the modularity of its new architecture in the future, as well.

Firefox's Electrolysis partial sandboxing architecture

Electrolysis should eliminate the “hanging” of some websites in Firefox, because the content and UI don’t interact with each other anymore, so they can’t choke the CPU as easily.

It should also significantly improve security. The more isolated app and operating system components are, the more secure the whole system typically is. Mozilla made an important first step in increasing Firefox’s security through the partial sandboxing of Electrolysis, and it could get even better in the future, if Firefox can replicate Chrome’s  security architecture.

Electrolysis arrived in Firefox version 48 (Firefox is version 49 at the time of this writing), but only 1% of users could take advantage of it. Mozilla wants to test this major architectural change in Firefox slowly so that it doesn’t cause too many problems for users by the time most can utilize it.

Full adoption of Electrolysis should arrive over the next few months, during which time Mozilla will already be testing the more advanced version of Firefox. Each website content gets its own process and sandbox, as well. Mozilla expects this work to be finished in the first half of 2017.

Second Step: Gradual Adoption Of Servo Components And The Rust Language

In 2013, Mozilla started developing the Servo browser engine in the Rust language, as a research alternative to its in-production Gecko engine. The new engine aimed to eliminate entire classes of bugs such as buffer overflows by utilizing Rust, which is thread- and memory-safe, and also see what could be done with a brand new browser engine that doesn’t need to support any legacy code.

Due to the focus of Rust on high-parallelism, Servo can take advantage of all of a CPU’s threads to load a page. Therefore, it can increase the performance of page loads by up to 4x for many users of multi-core computers and devices.

Servo vs Gecko time to load page (less is better)

For now, Servo itself remains a continuously developed research project, but Mozilla doesn’t plan to replace Gecko with Servo anytime soon. Instead, the organization seems to have adopted a more modular (and gradual) approach by replacing Gecko components with Servo components one by one.

Mozilla is internally calling this project “Quantum,” referring to the “quantum leap” in performance it expects Firefox to gain once enough of Servo’s components have been added to the browser.

"We are striving for performance gains from Quantum that will be so noticeable that your entire web experience will feel different,” said David Bryant, Head of Platform Engineering at Mozilla, in a Medium post.“Pages will load faster, and scrolling will be silky smooth. Animations and interactive apps will respond instantly, and be able to handle more intensive content while holding consistent frame rates. And the content most important to you will automatically get the highest priority, focusing processing power where you need it the most,” he added.

Bryant also said that the plan is to rethink and re-engineer foundational building blocks of the browser engine used by Mozilla, with much of the work already being done by the Servo team and the community behind it. Electrolysis has also been an important precursor step because Firefox's new multi-process architecture will help the highly-parallelized Servo code to maximize the performance of the Firefox browser.

Firefox’s Brighter Future

Over the past few years, Chrome has steadily increased its market share, becoming the most used browser in the world, to Internet Explorer’s, but also Firefox’s, detriment. Microsoft has seen this coming and has already launched Edge as a more future-proof browser with a new Chrome-like multi-process and sandboxed architecture that’s available for Windows 10.

Now it’s Mozilla’s turn to re-invent itself and bring users potentially the fastest browser on the market and offer much improved security due to both the new Electrolysis architecture and the utilization of the memory-safe Rust language within the next year. Bryant said that users can expect to see some major improvements in Firefox by the end of 2017.

Lucian Armasu
Lucian Armasu is a Contributing Writer for Tom's Hardware US. He covers software news and the issues surrounding privacy and security.
  • beliberdah
    " 'Quantum Leap' Improvement In Performance by end of 2017"

    Tell that to your gf after you fail to get it going.
  • bit_user
    Websites and Ads will just bloat to use up all the performance gains.

    And instead of bogging down 1 core, like Firefox used to do, it'll hose your whole machine.
  • Christopher_115
    "Quantum Leap". So they're going for the smallest increase in performance that is physically possible. :P
  • none12345
    Thank you for this article.

    This past week ive been having a wierd issue with slow UI in firefox with a certain web site. Only a specific site using a lot of flash.

    I manually enabled electrosylisis and no more issues. So yay!
  • Martell1977
    This will hopefully fix an issue I've had since 2 or 3 updates ago. Whenever I watch a stream in firefox, the stream crashes and I get a "plugin unresponsive" error. I've tried a clean reinstall and several other things to no avail. I have to use chrome whenever I want to watch a stream and I can't stand chrome, but it's better than edge.
  • firefoxx04
    Firefox on windows works well for me. Android is terrible right now.
  • bit_user
    18789781 said:
    "Quantum Leap". So they're going for the smallest increase in performance that is physically possible. :P
    No, they're obviously highlighting the discontinuous nature of the transition.

    They're assuming the reader is intelligent enough to realize that the analogy refers to the rate of change, rather than the magnitude. Use context.
  • tntom
    Can't wait to switch back to FF. Competition is good. Chrome brought sandboxing, slimmer tool bars and tabs that used less vertical real estate, mute-able, duplicatable tabs, and vastly improved rendering performance. I hate how Chrome handles bookmarks the all in one URL text box and how it visually looks.
  • pasow
    18789729 said:
    Websites and Ads will just bloat to use up all the performance gains.

    And instead of bogging down 1 core, like Firefox used to do, it'll hose your whole machine.

    given how slowly ad requirements shift in my job, it will take a while for us to catch up. The dominant 40KB thing for flash stuck around for a decade even to the detriment of the ad and end user at times. it took the forced move to HTML for any industry wide changes to happen.
  • We can talk about anything but nothing comes close to that garbage, Edge.