Feeds

Mozilla eyes multi-threaded webpage rendering

One page. Many cores

Providing a secure and efficient Helpdesk

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

Choosing a cloud hosting partner with confidence

More from The Register

next story
Microsoft on the Threshold of a new name for Windows next week
Rebranded OS reportedly set to be flung open by Redmond
Business is back, baby! Hasta la VISTA, Win 8... Oh, yeah, Windows 9
Forget touchscreen millennials, Microsoft goes for mouse crowd
SMASH the Bash bug! Apple and Red Hat scramble for patch batches
'Applying multiple security updates is extremely difficult'
Apple: SO sorry for the iOS 8.0.1 UPDATE BUNGLE HORROR
Apple kills 'upgrade'. Hey, Microsoft. You sure you want to be like these guys?
ARM gives Internet of Things a piece of its mind – the Cortex-M7
32-bit core packs some DSP for VIP IoT CPU LOL
Lotus Notes inventor Ozzie invents app to talk to people on your phone
Imagine that. Startup floats with voice collab app for Win iPhone
'Google is NOT the gatekeeper to the web, as some claim'
Plus: 'Pretty sure iOS 8.0.2 will just turn the iPhone into a fax machine'
prev story

Whitepapers

A strategic approach to identity relationship management
ForgeRock commissioned Forrester to evaluate companies’ IAM practices and requirements when it comes to customer-facing scenarios versus employee-facing ones.
Storage capacity and performance optimization at Mizuno USA
Mizuno USA turn to Tegile storage technology to solve both their SAN and backup issues.
High Performance for All
While HPC is not new, it has traditionally been seen as a specialist area – is it now geared up to meet more mainstream requirements?
Beginner's guide to SSL certificates
De-mystify the technology involved and give you the information you need to make the best decision when considering your online security options.
Security for virtualized datacentres
Legacy security solutions are inefficient due to the architectural differences between physical and virtual environments.