Register FAQ/Rules Forum Spy Search Today's Posts Mark Forums Read

Welcome to the Mac Forums forums. Please read the FAQ if you have questions. Register to participate.

 
Go Back   Mac Forums > News and Article Discussion > MacRumors.com News Discussion
TouchArcade.com - iPhone Game Reviews and News

Reply
 
Thread Tools Search this Thread  
Old Jun 5, 2008, 02:01 AM   #1
MacRumors
macrumors bot
 
Join Date: Apr 2001
Safari To Get JavaScript Speed Enhancements



The WebKit project announced this week a new and improved JavaScript interpreter, code-named SquirrelFish.

SquirrelFish promises 1.6 times faster JavaScript interpreting as compared to Webkit/Safari 3.1. This is accomplished by using "a register-based, direct-threaded, high-level bytecode engine" which aims to eliminate the overhead associated with traditional syntax tree walking interpreters like the one currently used in Safari 3.1.x.




SunSpider runs per minute. Image courtesy webkit.org

The introduction of the open-source effort means the improvements will almost certainly be propagated into Apple's Safari web browser, however the timing is unknown.

Of note, Safari 3.1 saw dramatic speed improvements over 3.0.x, indicating Apple has been and continues to be actively engaged in Safari/WebKit JavaScript performance.

Article Link
MacRumors is offline   Reply With Quote
Old Jun 5, 2008, 02:01 AM   #2
epanov
macrumors newbie
 
Join Date: Jan 2008
Location: Indianapolis, IN
I am not really technical and stuff. What exactly will this do for the user?
epanov is offline   Reply With Quote
Old Jun 5, 2008, 02:05 AM   #3
arn
macrumors god
 
arn's Avatar
 
Join Date: Apr 2001
Send a message via AIM to arn
Quote:
Originally Posted by epanov View Post
I am not really technical and stuff. What exactly will this do for the user?
um... makes Javascript go faster. which is used on many websites.

arn
arn is offline   Reply With Quote
Old Jun 5, 2008, 02:06 AM   #4
longofest
Demi-God (Editor)
 
longofest's Avatar
 
Join Date: Jul 2003
Location: Falls Church, VA
Send a message via AIM to longofest
Quote:
Originally Posted by arn View Post
um... makes Javascript go faster. which is used on many websites.

arn
you resisted it with all your might, didn't you....


the real answer, of course, is: it will make Safari snappier™
longofest is offline   Reply With Quote
Old Jun 5, 2008, 02:16 AM   #5
solipsism
macrumors regular
 
Join Date: Jan 2008
In March WebKit made page load faster by reducing latency by allowing side parsers to run when the main parser gets held up. WebKit is also fastr than other browsers with heavy JS becasue they already parse JS much more efficiently. This rocks!
http://webkit.org/blog/166/optimizin...n-web-browser/
Quote:
Originally Posted by epanov View Post
I am not really technical and stuff. What exactly will this do for the user?
If a web browser can parse code more efficiently then your page will render faster.
solipsism is offline   Reply With Quote
Old Jun 5, 2008, 02:24 AM   #6
peedub
macrumors newbie
 
Join Date: Apr 2006
this is something to look forward to i guess... but where the heck do they come up with these names? SquirrelFish? haha what were they thinking?
peedub is offline   Reply With Quote
Old Jun 5, 2008, 02:25 AM   #7
Beric
macrumors 68000
 
Beric's Avatar
 
Join Date: Jan 2008
Quote:
Originally Posted by longofest View Post
you resisted it with all your might, didn't you....


the real answer, of course, is: it will make Safari snappier™
Please oh please.

MY only question was how low of a post-number in this topic would a "snappier Safari" get mentioned. Apparently on post #4.
Beric is offline   Reply With Quote
Old Jun 5, 2008, 02:26 AM   #8
Matthew Yohe
macrumors Demi-God
 
Join Date: Oct 2006
Location: Iowa City, IA
Send a message via AIM to Matthew Yohe
this is all you need to know:
Matthew Yohe is offline   Reply With Quote
Old Jun 5, 2008, 02:26 AM   #9
DMann
macrumors Demi-God
 
DMann's Avatar
 
Join Date: Jan 2002
Location: 10023
Quote:
Originally Posted by peedub View Post
this is something to look forward to i guess... but where the heck do they come up with these names? SquirrelFish? haha what were they thinking?
speed-Speed-SPEED.

By comparison, Longhorn seems less effective.
__________________
Think Different - Innovate
DMann is online now   Reply With Quote
Old Jun 5, 2008, 02:27 AM   #10
solipsism
macrumors regular
 
Join Date: Jan 2008
Quote:
Originally Posted by peedub View Post
but where the heck do they come up with these names? SquirrelFish? haha what were they thinking?
http://en.wikipedia.org/wiki/Squirrelfish
solipsism is offline   Reply With Quote
Old Jun 5, 2008, 02:38 AM   #11
Mac OS X Ocelot
macrumors 6502a
 
Mac OS X Ocelot's Avatar
 
Join Date: Sep 2005
I have JavaScript turned off in Safari. Webpages take much, much less time loading now. I'm learning to live without it entirely.
Mac OS X Ocelot is offline   Reply With Quote
Old Jun 5, 2008, 02:52 AM   #12
RTee
macrumors member
 
Join Date: May 2008
Location: Australia
good stuff!
RTee is offline   Reply With Quote
Old Jun 5, 2008, 03:01 AM   #13
Squid7085
macrumors newbie
 
Join Date: Aug 2002
Location: Wichita, KS
Send a message via AIM to Squid7085 Send a message via Yahoo to Squid7085
Oh, how about Flash speed and stability first. That would be nice. The web seems to be seeing flash as the future, yet when my PowerBook visits a site with even a flash ad on it, I feel as if my machine is about to take off and leave my lap.
Squid7085 is offline   Reply With Quote
Old Jun 5, 2008, 03:03 AM   #14
arn
macrumors god
 
arn's Avatar
 
Join Date: Apr 2001
Send a message via AIM to arn
Quote:
Originally Posted by Squid7085 View Post
Oh, how about Flash speed and stability first. That would be nice. The web seems to be seeing flash as the future, yet when my PowerBook visits a site with even a flash ad on it, I feel as if my machine is about to take off and leave my lap.
That's up to Adobe, not Apple/Webkit.

arn
arn is offline   Reply With Quote
Old Jun 5, 2008, 03:17 AM   #15
Darkroom
macrumors 68000
 
Darkroom's Avatar
 
Join Date: Dec 2006
Location: Montréal, Canada
i don't exactly know how "slow" javascript has ever been... seems to have always been as instant as a site loading... what could really use some improvement is flash... don't get me wrong, the FPS of flash on safari are great, and much better than firefox or camino, but flash is often slow to initiate, if it doesn't cause the browser to crash.
__________________
iPhone OS Apps: Film Light, SizeMe.
Darkroom is offline   Reply With Quote
Old Jun 5, 2008, 03:24 AM   #16
leehericks
macrumors newbie
 
Join Date: Jan 2008
Well, as always debated, some believe that Web 2.0 using Javascript is a hell of a lot better than using Flash. Which means when a web app like Meebo loads up in your browser and uses Javascript non-stop, you want it to execute quickly.
__________________
24" Aluminum iMac, 3.06 GHz, 4 GB 800mhz DDR2 SDRAM, GeForce 8800 GS. Beautiful.
leehericks is offline   Reply With Quote
Old Jun 5, 2008, 03:29 AM   #17
Applepi
macrumors Demi-God
 
Join Date: Aug 2007
Location: PHX
Safari can always be snappier..
Applepi is offline   Reply With Quote
Old Jun 5, 2008, 04:03 AM   #18
Squid7085
macrumors newbie
 
Join Date: Aug 2002
Location: Wichita, KS
Send a message via AIM to Squid7085 Send a message via Yahoo to Squid7085
Quote:
Originally Posted by arn View Post
That's up to Adobe, not Apple/Webkit.

arn
I know, just a general statement. As stated by somebody else, I just have Javascript disabled. Matter of fact, it appears to be used so little that I completely forgot I disabled it.
Squid7085 is offline   Reply With Quote
Old Jun 5, 2008, 04:06 AM   #19
psychofreak
Retired
 
Join Date: May 2006
Location: London
I have a feeling that this may come very soon, the latest Webkit nightlies have been really stable, even more so than Safari 3.1
psychofreak is offline   Reply With Quote
Old Jun 5, 2008, 04:20 AM   #20
sam-i-am
macrumors member
 
Join Date: Mar 2006
I did some speed tests using the latest webkit (whcih includes the new squirrelfish stuff) and a bunch of other browsers. I posted the results at my blog for anyone who is interested:

http://gthing.net/new-javascript-eng...it-nerd-stuff/

The bottom line is that it is almost twice as fast as Safari, and not even in the same ballpark as firefox 2, 3 beta, internet explorer, etc. This thing is smoking!
sam-i-am is offline   Reply With Quote
Old Jun 5, 2008, 05:02 AM   #21
Fotek2001
macrumors member
 
Join Date: Jun 2005
Location: London, England
Quote:
Originally Posted by Squid7085 View Post
I know, just a general statement. As stated by somebody else, I just have Javascript disabled. Matter of fact, it appears to be used so little that I completely forgot I disabled it.
Find me a major website that doesn't use JavaScript somewhere. I find it hard to believe you can have any kind of meaningful browsing experience these days without Javascript.
Fotek2001 is offline   Reply With Quote
Old Jun 5, 2008, 05:04 AM   #22
Cleve
macrumors regular
 
Join Date: Jun 2007
for iPhone as well

http://blogs.computerworld.com/squir...at_much_faster

And daring fireball says this will make a huge difference in the iPhone
Cleve is offline   Reply With Quote
Old Jun 5, 2008, 05:05 AM   #23
Squid7085
macrumors newbie
 
Join Date: Aug 2002
Location: Wichita, KS
Send a message via AIM to Squid7085 Send a message via Yahoo to Squid7085
Quote:
Originally Posted by Fotek2001 View Post
Find me a major website that doesn't use JavaScript somewhere. I find it hard to believe you can have any kind of meaningful browsing experience these days without Javascript.
Let me rephrase that, there is nothing that I know I am missing. Can't miss it if you don't know it is there. Now that I checked, it actually isn't disabled anymore, I guess I never disabled it after I reinstalled a few weeks ago. Weird.
Squid7085 is offline   Reply With Quote
Old Jun 5, 2008, 05:44 AM   #24
Ice Berg
macrumors newbie
 
Join Date: Mar 2008
Location: Houston
Memory leak???

The webkit nightly build tonight seems a heck of alot faster but it still gets real slow loading pages after about 10 minutes of surfing. Is there still a memory leak in Safari or Webkit nightly builds??
__________________
JC
Ice Berg is offline   Reply With Quote
Old Jun 5, 2008, 05:51 AM   #25
winterspan
macrumors 6502a
 
Join Date: Jun 2007
Quote:
Originally Posted by epanov View Post
I am not really technical and stuff. What exactly will this do for the user?
Most visibly, it will speed up the loading and processing of interactive web sites and web applications.


Quote:
Originally Posted by Mac OS X Ocelot View Post
I have JavaScript turned off in Safari. Webpages take much, much less time loading now. I'm learning to live without it entirely.
Quote:
Originally Posted by Squid7085 View Post
I know, just a general statement. As stated by somebody else, I just have Javascript disabled. Matter of fact, it appears to be used so little that I completely forgot I disabled it.
You can't be serious. So you guys apparently don't ever use javascript-based/AJAX web applications. It seems as if nearly every popular web application on the internet uses AJAX/Javascript in some form. Google/MSN Maps? Gmail? Google Reader? Google Docs? Meebo?
winterspan is offline   Reply With Quote

Reply

Mac Forums > News and Article Discussion > MacRumors.com News Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 01:07 PM.

Mac News | Mac Rumors | iPhone Game Reviews | iPhone Apps

Powered by vBulletin® Version 3.6.10
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright 2002-2009, MacRumors.com, LLC