First for mac news, reviews and know-how
  
Welcome Guest  Register Log in
  Advanced 

News 

[PSUs]
Friday 29th February 2008
Firefox uncovers "hidden" speed boost for Safari 9:30AM, Friday 29th February 2008
A leading Firefox developer has discovered that Apple has undocumented APIs in OS X that could give Safari a significant performance advantage over other browsers.

Vladimir Vukićević was attempting to find out why the performance of Firefox 3 builds was hitting a plateau, when he noticed that Safari was happily drawing pages at twice the frame rate.

Digging around in Apple's WebKit engine, which drives Safari, he spotted over 100 undocumented "OS-secrets-only-WebKit-knows".

"Reading the WebKit code is pretty interesting; there are all sorts of potentially useful Cocoa internals bits you can pick up...," he says. "Would any other apps like to take advantage of some of that functionality? I'm pretty sure the answer there is yes, but they can't."

Vukićević is clear that he does not think Apple is being malicious by purposely trying to cripple third party software, as the hyperbolic
 
 
ADVERTISEMENT
Slashdot poster had claimed. Only that "the undocumented functionality could be useful for Firefox and other apps to implement things in an simpler (and potentially more efficient) manner."

And he adds that Firefox 3 will show that the APIs do not guarantee Safari has an advantage.

Responding to Vukićević's blog post, WebKit developer David Hyatt says that it would have been dangerous to make the APIs public.

"We aren't really happy with that code in WebKit, but we had to do it to avoid performance regressions in apps that embedded WebKit," he says, without adding that WekBkit apps make quite a long list.

"Many of the private methods that WebKit uses are private for a reason," he says. "Either they expose internal structures that can't be depended on, or they are part of something inside a framework that may not be fully formed."

Hyatt adds that, as Vukićević notes himself, "there was a totally acceptable public way of doing what you needed to do."

Submit to: Digg  |  Slashdot  |  Del.icio.us  |  Technorati

Related News




Columns

Editorial: Apple cordially invites you to...

The invitations are out, but could Apple be sending coded messages? › See full Opinion

MAC GUIDE

The Independent Guide to the Mac 2

Featuring all the essential tips, crafty techniques and information you need, this fully updated publication is the definitive guide to the Apple range and a must have for any switched on individual.
If you would prefer a digital version for only £5,  click here

IPOD GUIDE

The Ultimate iPod Guide

Hundreds of tips to make the most of your iPod - covering every iPod, old and new.

IPHONE GUIDE

The Independent Guide to the iPhone

Master the iPhone, tool by tool. Everything you need to know about the most remarkable portable gadget.

GRAPHIC GUIDE

The Ultimate Guide To Graphic

Covering Photoshop, InDesign, QuarkXPress and more, this comprehensive guide compiled by experts across the field of computing, presents the reader with the vital knowledge of how to harness the power of their computer and use this to create professional, appealing and engaging projects.