Feeds

Mozilla eyes multi-threaded webpage rendering

One page. Many cores

The Power of One eBook: Top reasons to choose HP BladeSystem

Velocity Mozilla is exploring ways of building a multi-threaded browser DOM for Firefox, so that a single web page can be rendered using multiple processor cores.

"We think it's possible," Mozilla open source evangelist Chris Blizzard said on Thursday at the O'Reilly Velocity conference in Santa Clara, California. "This is an active area of research, and we invite anyone to join us."

Speaking with The Register, Blizzard said that the project is very much in the early stages, but it involves Rust, a new low-level programming language built at Mozilla. Mozilla man Graydon Hoare began Rust as a side project in 2006, but he's now working on it full-time, according to Blizzard. The language is built from the ground up for concurrency and safety. "It's a C++-like languages designed to let you build in parallelism and security," Blizzard said.

Today, Firefox and other browser offer various forms of parallelism. Separate tabs can be run on multiple cores, though they do share some processes. Plug-ins are now run as separate processes. And things like http transactions and video and audio decoding are multi-threaded.

WebGL provides parallelism via GPU hardware acceleration. And with a browser like mobile Firefox, Blizzard said, Mozilla uses separate processes for the browser chrome and the content.

But with Firefox, the DOM (Document Object Model) interface used to render things like HTML and JavaScript is still single-threaded. "The DOM and the way we do layout and the expectations and promises for the way the internal APIs behave are all single-threaded," Blizzard said. "It's very difficult to make the DOM multi-core."

With more and more applications moving to the browser, it only makes sense to break up the DOM's tasks onto multiple cores. This applies to both desktop and mobile devices, which are beginning to see multi-core chips.

In essence, Mozilla is working to rebuild the DOM with Rust. "The idea is to take chunks of the DOM, take chunks of the rendering, and break them into their own tasks and actually be able to take advantage of multi-core machines in a single web page," Blizzard said.

But Blizzard stresses that Mozilla has not deployed any code and has no real schedule for the project. "It's basically research at this point," he said. ®

HP ProLiant Gen8: Integrated lifecycle automation

More from The Register

next story
Whoah! How many Google Play apps want to read your texts?
Google's app permissions far too lax – security firm survey
Chrome browser has been DRAINING PC batteries for YEARS
Google is only now fixing ancient, energy-sapping bug
Do YOU work at Microsoft? Um. Are you SURE about that?
Nokia and marketing types first to get the bullet, says report
Microsoft takes on Chromebook with low-cost Windows laptops
Redmond's chief salesman: We're taking 'hard' decisions
EU dons gloves, pokes Google's deals with Android mobe makers
El Reg cops a squint at investigatory letters
Big Blue Apple: IBM to sell iPads, iPhones to enterprises
iOS/2 gear loaded with apps for big biz ... uh oh BlackBerry
OpenWRT gets native IPv6 slurping in major refresh
Also faster init and a new packages system
prev story

Whitepapers

Reducing security risks from open source software
Follow a few strategies and your organization can gain the full benefits of open source and the cloud without compromising the security of your applications.
Consolidation: The Foundation for IT Business Transformation
In this whitepaper learn how effective consolidation of IT and business resources can enable multiple, meaningful business benefits.
Application security programs and practises
Follow a few strategies and your organization can gain the full benefits of open source and the cloud without compromising the security of your applications.
Boost IT visibility and business value
How building a great service catalog relieves pressure points and demonstrates the value of IT service management.
Consolidation: the foundation for IT and business transformation
In this whitepaper learn how effective consolidation of IT and business resources can enable multiple, meaningful business benefits.