PDA

View Full Version : Why JavaScript On Mobile Is Slow


sl4shd0t
07-11-2013, 12:03 AM
An anonymous reader writes "Drew Crawford has a good write up of the current state of JavaScript in mobile development, and why the lack of explicit memory handling (and a design philosophy that ignores memory issues) leads to massive garbage collection overhead, which prevents HTML5/JS from being deployed for anything besides light duty mobile web development. Quoting: 'Here’s the point: memory management is hard on mobile. iOS has formed a culture around doing most things manually and trying to make the compiler do some of the easy parts. Android has formed a culture around improving a garbage collector that they try very hard not to use in practice. But either way, everybody spends a lot of time thinking about memory management when they write mobile applications. There’s just no substitute for thinking about memory. Like, a lot. When JavaScript people or Ruby people or Python people hear "garbage collector," they understand it to mean "silver bullet garbage collector." They mean "garbage collector that frees me from thinking about managing memory." But there’s no silver bullet on mobile devices. Everybody thinks about memory on mobile, whether they have a garbage collector or not. The only way to get "silver bullet" memory management is the same way we do it on the desktop–by having 10x more memory than your program really needs.'" http://a.fsdn.com/sd/twitter_icon_large.png (http://twitter.com/home?status=Why+JavaScript+On+Mobile+Is+Slow%3A+ht tp%3A%2F%2Fbit.ly%2F1bp39ir) http://a.fsdn.com/sd/facebook_icon_large.png (http://www.facebook.com/sharer.php?u=http%3A%2F%2Fmobile.slashdot.org%2Fst ory%2F13%2F07%2F10%2F2045253%2Fwhy-javascript-on-mobile-is-slow%3Futm_source%3Dslashdot%26utm_medium%3Dfacebo ok) http://www.gstatic.com/images/icons/gplus-16.png (http://plus.google.com/share?url=http://mobile.slashdot.org/story/13/07/10/2045253/why-javascript-on-mobile-is-slow?utm_source=slashdot&utm_medium=googleplus)

Read more of this story (http://mobile.slashdot.org/story/13/07/10/2045253/why-javascript-on-mobile-is-slow?utm_source=rss1.0moreanon&utm_medium=feed) at Slashdot.
http://slashdot.feedsportal.com/c/35028/f/647376/s/2e7c5907/mf.gif

http://da.feedsportal.com/r/165666057844/u/49/f/647376/c/35028/s/2e7c5907/a2.img (http://da.feedsportal.com/r/165666057844/u/49/f/647376/c/35028/s/2e7c5907/a2.htm)http://pi.feedsportal.com/r/165666057844/u/49/f/647376/c/35028/s/2e7c5907/a2t.imghttp://feeds.feedburner.com/~r/Slashdot/slashdotDevelopers/~4/MMFH9eNAcX0

More... (http://rss.slashdot.org/~r/Slashdot/slashdotDevelopers/~3/MMFH9eNAcX0/story01.htm)