Feeds

Mozilla eyes multi-threaded webpage rendering

One page. Many cores

Security and trust: The backbone of doing business over the internet

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. ®

Security and trust: The backbone of doing business over the internet

More from The Register

next story
New 'Cosmos' browser surfs the net by TXT alone
No data plan? No WiFi? No worries ... except sluggish download speed
'Windows 9' LEAK: Microsoft's playing catchup with Linux
Multiple desktops and live tiles in restored Start button star in new vids
iOS 8 release: WebGL now runs everywhere. Hurrah for 3D graphics!
HTML 5's pretty neat ... when your browser supports it
Mathematica hits the Web
Wolfram embraces the cloud, promies private cloud cut of its number-cruncher
Google extends app refund window to two hours
You now have 120 minutes to finish that game instead of 15
Intel: Hey, enterprises, drop everything and DO HADOOP
Big Data analytics projected to run on more servers than any other app
Mozilla shutters Labs, tells nobody it's been dead for five months
Staffer's blog reveals all as projects languish on GitHub
SUSE Linux owner Attachmate gobbled by Micro Focus for $2.3bn
Merger will lead to mainframe and COBOL powerhouse
iOS 8 Healthkit gets a bug SO Apple KILLS it. That's real healthcare!
Not fit for purpose on day of launch, says Cupertino
prev story

Whitepapers

Providing a secure and efficient Helpdesk
A single remote control platform for user support is be key to providing an efficient helpdesk. Retain full control over the way in which screen and keystroke data is transmitted.
WIN a very cool portable ZX Spectrum
Win a one-off portable Spectrum built by legendary hardware hacker Ben Heck
Saudi Petroleum chooses Tegile storage solution
A storage solution that addresses company growth and performance for business-critical applications of caseware archive and search along with other key operational systems.
Protecting users from Firesheep and other Sidejacking attacks with SSL
Discussing the vulnerabilities inherent in Wi-Fi networks, and how using TLS/SSL for your entire site will assure security.
Security for virtualized datacentres
Legacy security solutions are inefficient due to the architectural differences between physical and virtual environments.