Background Javascript Compilation Boosts Chrome Performance
kc123 writes "The latest version of Chrome includes improvements in JavaScript compilation, according to the Chromium blog. Historically, Chrome compiled JavaScript on the main thread, where it could interfere with the performance of the JavaScript application. For large pieces of code this could become a nuisance, and in complex applications like games it could even lead to stuttering and dropped frames. In the latest Chrome Beta they've enabled concurrent compilation, which offloads a large part of the optimizing compilation phase to a background thread. The result is that JavaScript applications remain responsive and performance gets a boost."
RTFA... If you're left with questions from the summary then click on the link; the TFA is quite well written.
Why would you be dynamically loading new code in the middle of a game loop anyway? You would have know this causes issues when you designed the application and would have loaded it all up prior to executing the loop.
Great. Now we have to wait just another 10 years and we get a fantastic JavaScript runtime environment which will be as fast as ... the Java runtime today.
The fan on my computer keeps going up with 30% CPU usage on my hexcore system when playing youtube or running anything javascript intense on Chrome.
The other 2 browsers do not have this issue. Chrome might win on some artificial benchmarks but GPU acceleration and real usage sap too much CPU and I hate hearing my fan keep blowing when I listen to a simple song. FYI I have an ATI 7850 with about:flags set to use GPU and acceleration when available with CSS, smooth scroll, and other settings. IE and FF turn this on by default and still.
I am typing this on IE 10 for this reason. SIGH
http://saveie6.com/
Of course it was: it's positive news about Chrome! It doesn't matter how trivial it is, if they don't loudly trumpet it from the rooftops, then they'll end up like Firefox: not mentioning anything positive only means people will obsess over the negatives.
The "news for nerds" takeaway is: everyone is assuming mutiple-core systems now. For a single-core system, this will make things *slower*.
Is anyone else surprised that it doesn't already do this? Do the other browsers not do this either?
There are still single core systems that aren't legacy and use java?
It might make things slower, but it still might make things *appear* faster but reducing pauses in the Javascript thread. You might not notice 10 10ms pauses but you'll probably notice a 100ms pause.
...when we have a fantastic JVM, and not just a klunky, half-decent one that's past its prime. Until then I'll happily take a JS equivalent that still has promise.
What's Java got to do with anything in this article? Except Java and Javascript share common letters in their name.
What about DWR? http://en.wikipedia.org/wiki/D...
Or ST-JS? http://st-js.github.io/
lucm, indeed.
Do not block the UI thread.
chrome = google = spying for da man and for profit = no thanks.
For a single-core system, this will make things *slower*.
Unless Chrome checks how many cores/threads are available and acts accordingly.
systemd is Roko's Basilisk.
Welcome to 1998
Welcome to 1998
Maybe in a future revision. This would bee great !
I've been saying for years that Chrome was pathetic on how it makes poor use of multicore systems.
Javascript and threading being the number one problem.
The number two problem with chrome, click tools-task manager.
Browser 520MB
Tab Gmail: 120MB
Tab Twitter: 253MB
Tab Slashdot.org: 40MB (not Beta)
Tab Youtube: 94MB
GPU Process: 258MB
Plug-in: Shockwave Flash: 126MB
4 tabs open and 1.2GB of ram is consumed. This is a 32bit application.
Chrome needs to:
Enable 64bit mode, so leaking javascript apps like gmail and twitter don't crash after being open for half a day
Fix leaking Javascript
Make one-click flash be treated as though there is no flash installed OR flash installed. The former allows sites to fall back to html5 video if that is what the flash is, the latter just makes it no better than pathetic adblock.
Selectively disable Javascript functions for certain/all domains. I want eval() and document.write to die, as well as window.open()
Except Java and Javascript share common letters in their name.
I like to say that java:javascript::ham:hamster. OK, yeah, I stole it.
It is pitch black. You are likely to be eaten by a grue.
I've gone back to Firefox although I hadn't really left it. Why? Spying constantly and most recently disabling extensions without your approval and you have no way to re-enable them. This is because they want all extension developers to use their web store to funnel extensions out to the browsers, creating another fucking walled garden. I think it's not only time to de-Chrome but to de-Google completely, I'm tired of changing policies and them breaking shit just for shits and giggles.
Harrison's Postulate - "For every action there is an equal and opposite criticism"
Except Java and Javascript share common letters in their name.
I like to say that java:javascript::ham:hamster. OK, yeah, I stole it.
Suddenly I am intrigued by the prospect of raising very large hamsters...
Multi-core systems have been the norm for consumers for what, 5 years now? Probably longer. One of the biggest complaints about the multi-core trend is that software isn't written to take advantage of it.
So I give you the following food for thought:
- Consumers who care about speed are unlikely to have a 10 year old computer.
- Consumers who have a 10 year old computer are unlikely to complain about the overhead multi-threading has on a single core computer.
Like calling folks idiots? Like this from you troll http://slashdot.org/comments.p...
Prove me wrong dumbass http://games.slashdot.org/comm...
It works, & gives folks what they want here (no beta site redirect foisted on them without asking, which is WHY I put it up... they did it to me 1 or 2 times, that beat it, & I gave folks what they wanted).
You're also FREE to *try* to disprove 17 points of FACT that use of custom hosts files gives users more speed, security, reliability, & even added anonymity that I list here where you can download it, free -> http://start64.com/index.php?o...
(Only thing is, on the latter, that FAR more skilled trolls than you have TRIED to, only to get shot down in flames each time, by yours truly)
APK
P.S.=> Come on big talker - go for it: I'll eat you ALIVE here publicly just to laugh @ your DUMB ass even more...apk
Like calling folks idiots? Like this from you troll http://slashdot.org/comments.p...
Prove me wrong dumbass http://games.slashdot.org/comm...
It works, & gives folks what they want here (no beta site redirect foisted on them without asking, which is WHY I put it up... they did it to me 1 or 2 times, that beat it, & I gave folks what they wanted).
You're also FREE to *try* to disprove 17 points of FACT that use of custom hosts files gives users more speed, security, reliability, & even added anonymity that I list here where you can download it, free -> http://start64.com/index.php?o...
(Only thing is, on the latter, that FAR more skilled trolls than you have TRIED to, only to get shot down in flames each time, by yours truly)
APK
P.S.=> Come on big talker - go for it: I'll eat you ALIVE here publicly just to laugh @ your DUMB ass even more...apk
Because the stuff made from pork bellies is *so* last-millennium.
Like calling folks idiots? Like this from you troll http://slashdot.org/comments.p...
Prove me wrong dumbass http://games.slashdot.org/comm...
It works, & gives folks what they want here (no beta site redirect foisted on them without asking, which is WHY I put it up... they did it to me 1 or 2 times, that beat it, & I gave folks what they wanted).
You're also FREE to *try* to disprove 17 points of FACT that use of custom hosts files gives users more speed, security, reliability, & even added anonymity that I list here where you can download it, free -> http://start64.com/index.php?o...
(Only thing is, on the latter, that FAR more skilled trolls than you have TRIED to, only to get shot down in flames each time, by yours truly)
APK
P.S.=> Come on big talker - go for it: I'll eat you ALIVE here publicly just to laugh @ your DUMB ass even more...apk
Like calling folks idiots? Like this from you troll http://slashdot.org/comments.p...
Prove me wrong dumbass http://games.slashdot.org/comm...
It works, & gives folks what they want here (no beta site redirect foisted on them without asking, which is WHY I put it up... they did it to me 1 or 2 times, that beat it, & I gave folks what they wanted).
You're also FREE to *try* to disprove 17 points of FACT that use of custom hosts files gives users more speed, security, reliability, & even added anonymity that I list here where you can download it, free -> http://start64.com/index.php?o...
(Only thing is, on the latter, that FAR more skilled trolls than you have TRIED to, only to get shot down in flames each time, by yours truly)
APK
P.S.=> Come on big talker - go for it: I'll eat you ALIVE here publicly just to laugh @ your DUMB ass even more...apk
Like calling folks idiots? Like this from you troll http://slashdot.org/comments.p...
Prove me wrong dumbass http://games.slashdot.org/comm...
It works, & gives folks what they want here (no beta site redirect foisted on them without asking, which is WHY I put it up... they did it to me 1 or 2 times, that beat it, & I gave folks what they wanted).
You're also FREE to *try* to disprove 17 points of FACT that use of custom hosts files gives users more speed, security, reliability, & even added anonymity that I list here where you can download it, free -> http://start64.com/index.php?o...
(Only thing is, on the latter, that FAR more skilled trolls than you have TRIED to, only to get shot down in flames each time, by yours truly)
APK
P.S.=> Come on big talker - go for it: I'll eat you ALIVE here publicly just to laugh @ your DUMB ass even more...apk
Like calling folks idiots? Like this from you troll http://slashdot.org/comments.p...
Prove me wrong dumbass http://games.slashdot.org/comm...
It works, & gives folks what they want here (no beta site redirect foisted on them without asking, which is WHY I put it up... they did it to me 1 or 2 times, that beat it, & I gave folks what they wanted).
You're also FREE to *try* to disprove 17 points of FACT that use of custom hosts files gives users more speed, security, reliability, & even added anonymity that I list here where you can download it, free -> http://start64.com/index.php?o...
(Only thing is, on the latter, that FAR more skilled trolls than you have TRIED to, only to get shot down in flames each time, by yours truly)
APK
P.S.=> Come on big talker - go for it: I'll eat you ALIVE here publicly just to laugh @ your DUMB ass even more...apk
Like calling folks idiots? Like this from you troll http://slashdot.org/comments.p...
Prove me wrong dumbass http://games.slashdot.org/comm...
It works, & gives folks what they want here (no beta site redirect foisted on them without asking, which is WHY I put it up... they did it to me 1 or 2 times, that beat it, & I gave folks what they wanted).
You're also FREE to *try* to disprove 17 points of FACT that use of custom hosts files gives users more speed, security, reliability, & even added anonymity that I list here where you can download it, free -> http://start64.com/index.php?o...
(Only thing is, on the latter, that FAR more skilled trolls than you have TRIED to, only to get shot down in flames each time, by yours truly)
APK
P.S.=> Come on big talker - go for it: I'll eat you ALIVE here publicly just to laugh @ your DUMB ass even more...apk
Like calling folks idiots? Like this from you troll http://slashdot.org/comments.p...
Prove me wrong dumbass http://games.slashdot.org/comm...
It works, & gives folks what they want here (no beta site redirect foisted on them without asking, which is WHY I put it up... they did it to me 1 or 2 times, that beat it, & I gave folks what they wanted).
You're also FREE to *try* to disprove 17 points of FACT that use of custom hosts files gives users more speed, security, reliability, & even added anonymity that I list here where you can download it, free -> http://start64.com/index.php?o...
(Only thing is, on the latter, that FAR more skilled trolls than you have TRIED to, only to get shot down in flames each time, by yours truly)
APK
P.S.=> Come on big talker - go for it: I'll eat you ALIVE here publicly just to laugh @ your DUMB ass even more...apk
Like calling folks idiots? Like this from you troll http://slashdot.org/comments.p...
Prove me wrong dumbass http://games.slashdot.org/comm...
It works, & gives folks what they want here (no beta site redirect foisted on them without asking, which is WHY I put it up... they did it to me 1 or 2 times, that beat it, & I gave folks what they wanted).
You're also FREE to *try* to disprove 17 points of FACT that use of custom hosts files gives users more speed, security, reliability, & even added anonymity that I list here where you can download it, free -> http://start64.com/index.php?o...
(Only thing is, on the latter, that FAR more skilled trolls than you have TRIED to, only to get shot down in flames each time, by yours truly)
APK
P.S.=> Come on big talker - go for it: I'll eat you ALIVE here publicly just to laugh @ your DUMB ass even more...apk
Like calling folks idiots? Like this from you troll http://slashdot.org/comments.p...
Prove me wrong dumbass http://games.slashdot.org/comm...
It works, & gives folks what they want here (no beta site redirect foisted on them without asking, which is WHY I put it up... they did it to me 1 or 2 times, that beat it, & I gave folks what they wanted).
You're also FREE to *try* to disprove 17 points of FACT that use of custom hosts files gives users more speed, security, reliability, & even added anonymity that I list here where you can download it, free -> http://start64.com/index.php?o...
(Only thing is, on the latter, that FAR more skilled trolls than you have TRIED to, only to get shot down in flames each time, by yours truly)
APK
P.S.=> Come on big talker - go for it: I'll eat you ALIVE here publicly just to laugh @ your DUMB ass even more...apk
Hey bigmouth
Like calling folks idiots? Like this from you troll http://slashdot.org/comments.p...
Prove me wrong dumbass http://games.slashdot.org/comm...
It works, & gives folks what they want here (no beta site redirect foisted on them without asking, which is WHY I put it up... they did it to me 1 or 2 times, that beat it, & I gave folks what they wanted).
You're also FREE to *try* to disprove 17 points of FACT that use of custom hosts files gives users more speed, security, reliability, & even added anonymity that I list here where you can download it, free -> http://start64.com/index.php?o...
(Only thing is, on the latter, that FAR more skilled trolls than you have TRIED to, only to get shot down in flames each time, by yours truly)
APK
P.S.=> Come on big talker - go for it: I'll eat you ALIVE here publicly just to laugh @ your DUMB ass even more...apk
Hey bigmouth
Like calling folks idiots? Like this from you troll http://slashdot.org/comments.p...
Prove me wrong dumbass http://games.slashdot.org/comm...
It works, & gives folks what they want here (no beta site redirect foisted on them without asking, which is WHY I put it up... they did it to me 1 or 2 times, that beat it, & I gave folks what they wanted).
You're also FREE to *try* to disprove 17 points of FACT that use of custom hosts files gives users more speed, security, reliability, & even added anonymity that I list here where you can download it, free -> http://start64.com/index.php?o...
(Only thing is, on the latter, that FAR more skilled trolls than you have TRIED to, only to get shot down in flames each time, by yours truly)
APK
P.S.=> Come on big talker - go for it: I'll eat you ALIVE here publicly just to laugh @ your DUMB ass even more...apk
Hey bigmouth
Like calling folks idiots? Like this from you troll http://slashdot.org/comments.p...
Prove me wrong dumbass http://games.slashdot.org/comm...
It works, & gives folks what they want here (no beta site redirect foisted on them without asking, which is WHY I put it up... they did it to me 1 or 2 times, that beat it, & I gave folks what they wanted).
You're also FREE to *try* to disprove 17 points of FACT that use of custom hosts files gives users more speed, security, reliability, & even added anonymity that I list here where you can download it, free -> http://start64.com/index.php?o...
(Only thing is, on the latter, that FAR more skilled trolls than you have TRIED to, only to get shot down in flames each time, by yours truly)
APK
P.S.=> Come on big talker - go for it: I'll eat you ALIVE here publicly just to laugh @ your DUMB ass even more...apk
Hey bigmouth
Like calling folks idiots? Like this from you troll http://slashdot.org/comments.p...
Prove me wrong dumbass http://games.slashdot.org/comm...
It works, & gives folks what they want here (no beta site redirect foisted on them without asking, which is WHY I put it up... they did it to me 1 or 2 times, that beat it, & I gave folks what they wanted).
You're also FREE to *try* to disprove 17 points of FACT that use of custom hosts files gives users more speed, security, reliability, & even added anonymity that I list here where you can download it, free -> http://start64.com/index.php?o...
(Only thing is, on the latter, that FAR more skilled trolls than you have TRIED to, only to get shot down in flames each time, by yours truly)
APK
P.S.=> Come on big talker - go for it: I'll eat you ALIVE here publicly just to laugh @ your DUMB ass even more...apk
Hey bigmouth
Like calling folks idiots? Like this from you troll http://slashdot.org/comments.p...
Prove me wrong dumbass http://games.slashdot.org/comm...
It works, & gives folks what they want here (no beta site redirect foisted on them without asking, which is WHY I put it up... they did it to me 1 or 2 times, that beat it, & I gave folks what they wanted).
You're also FREE to *try* to disprove 17 points of FACT that use of custom hosts files gives users more speed, security, reliability, & even added anonymity that I list here where you can download it, free -> http://start64.com/index.php?o...
(Only thing is, on the latter, that FAR more skilled trolls than you have TRIED to, only to get shot down in flames each time, by yours truly)
APK
P.S.=> Come on big talker - go for it: I'll eat you ALIVE here publicly just to laugh @ your DUMB ass even more...apk
Like calling folks idiots? Like this from you troll http://slashdot.org/comments.p...
Prove me wrong dumbass http://games.slashdot.org/comm...
It works, & gives folks what they want here (no beta site redirect foisted on them without asking, which is WHY I put it up... they did it to me 1 or 2 times, that beat it, & I gave folks what they wanted).
You're also FREE to *try* to disprove 17 points of FACT that use of custom hosts files gives users more speed, security, reliability, & even added anonymity that I list here where you can download it, free -> http://start64.com/index.php?o...
(Only thing is, on the latter, that FAR more skilled trolls than you have TRIED to, only to get shot down in flames each time, by yours truly)
APK
P.S.=> Come on big talker - go for it: I'll eat you ALIVE here publicly just to laugh @ your DUMB ass even more...apk
What about them? Javascript happens to be the most popular browser language. Java happens to be the most popular typesafe server-side language with the best tooling support.
You forgot to mention GWT, which compiles Java to Javascript as well.
Like calling folks idiots? Like this from you troll http://slashdot.org/comments.p...
Prove me wrong dumbass http://games.slashdot.org/comm...
It works, & gives folks what they want here (no beta site redirect foisted on them without asking, which is WHY I put it up... they did it to me 1 or 2 times, that beat it, & I gave folks what they wanted).
You're also FREE to *try* to disprove 17 points of FACT that use of custom hosts files gives users more speed, security, reliability, & even added anonymity that I list here where you can download it, free -> http://start64.com/index.php?o...
(Only thing is, on the latter, that FAR more skilled trolls than you have TRIED to, only to get shot down in flames each time, by yours truly)
APK
P.S.=> Come on big talker - go for it: I'll eat you ALIVE here publicly just to laugh @ your DUMB ass even more...apk
Like calling folks idiots? Like this from you troll http://slashdot.org/comments.p...
Prove me wrong dumbass http://games.slashdot.org/comm...
It works, & gives folks what they want here (no beta site redirect foisted on them without asking, which is WHY I put it up... they did it to me 1 or 2 times, that beat it, & I gave folks what they wanted).
You're also FREE to *try* to disprove 17 points of FACT that use of custom hosts files gives users more speed, security, reliability, & even added anonymity that I list here where you can download it, free -> http://start64.com/index.php?o...
(Only thing is, on the latter, that FAR more skilled trolls than you have TRIED to, only to get shot down in flames each time, by yours truly)
APK
P.S.=> Come on big talker - go for it: I'll eat you ALIVE here publicly just to laugh @ your DUMB ass even more...apk
Like calling folks idiots? Like this from you troll http://slashdot.org/comments.p...
Prove me wrong dumbass http://games.slashdot.org/comm...
It works, & gives folks what they want here (no beta site redirect foisted on them without asking, which is WHY I put it up... they did it to me 1 or 2 times, that beat it, & I gave folks what they wanted).
You're also FREE to *try* to disprove 17 points of FACT that use of custom hosts files gives users more speed, security, reliability, & even added anonymity that I list here where you can download it, free -> http://start64.com/index.php?o...
(Only thing is, on the latter, that FAR more skilled trolls than you have TRIED to, only to get shot down in flames each time, by yours truly)
APK
P.S.=> Come on big talker - go for it: I'll eat you ALIVE here publicly just to laugh @ your DUMB ass even more...apk
Like calling folks idiots? Like this from you troll http://slashdot.org/comments.p...
Prove me wrong dumbass http://games.slashdot.org/comm...
It works, & gives folks what they want here (no beta site redirect foisted on them without asking, which is WHY I put it up... they did it to me 1 or 2 times, that beat it, & I gave folks what they wanted).
You're also FREE to *try* to disprove 17 points of FACT that use of custom hosts files gives users more speed, security, reliability, & even added anonymity that I list here where you can download it, free -> http://start64.com/index.php?o...
(Only thing is, on the latter, that FAR more skilled trolls than you have TRIED to, only to get shot down in flames each time, by yours truly)
APK
P.S.=> Come on big talker - go for it: I'll eat you ALIVE here publicly just to laugh @ your DUMB ass even more...apk
They discovered threads just in 2014
Kudos
I guess the people who chose the name 'Javascript' because it sounded like 'Java' are getting what they deserved?
there's a cut down JavaScript spec designed to work around this very issue. Static typing and all that jazz :P.
Hi! I make Firefox Plug-ins. Check 'em out @ https://addons.mozilla.org/en-US/firefox/addon/youtube-mp3-podcaster/
Holy fuck! APK is fucking back! Yeah, bring the mass murderer back to the masses!
[1] 'Interpreted' in V8 really means compiled with no optimisations.
I am TheRaven on Soylent News
One of Android's problems is 90% of your code seems to be checking for nulls, since it's so parallel that you never know if a given object is initialized yet or not. How does this background javascript thing act if you try to call a function it hasn't processed yet? Do you have to check functions to see if they are null? I'm all for not blocking the UI, but some things are just inherently serial, like initializing before you do anything.
....Chrome sucks more balls than a $2 hooker on buy-one-get-one-free coupon day.
Holy shit, dude, chill the fuck out.
When its compiled to platform independend sandboxed binaries, why can't the website provide this? This would safe a lot of compiling on the clients.
running chrome on single core? that's an adventure. chrome takes 100mb just to sneeze and say hello. oh, and don't you dare live it idling for 5 mins. that'll be 1mb per min, thank you very much. yeah, yeah... memory has "nothing to do with the number of cores"... except being HIGHLY CORRELATED... c'mon... i dare you to say correlation does not imply causation... because causation is not the issue here... correlation (ie, simultaneous co-occurrence) is
Any guest worker system is indistinguishable from indentured servitude.
Since we all know javascript is the #1 delivery mechanism of malcode online.
Like calling folks idiots? Like this from you troll http://slashdot.org/comments.p...
Prove me wrong dumbass http://games.slashdot.org/comm...
It works, & gives folks what they want here (no beta site redirect foisted on them without asking, which is WHY I put it up... they did it to me 1 or 2 times, that beat it, & I gave folks what they wanted).
You're also FREE to *try* to disprove 17 points of FACT that use of custom hosts files gives users more speed, security, reliability, & even added anonymity that I list here where you can download it, free -> http://start64.com/index.php?o...
(Only thing is, on the latter, that FAR more skilled trolls than you have TRIED to, only to get shot down in flames each time, by yours truly)
APK
P.S.=> Come on big talker - go for it: I'll eat you ALIVE here publicly just to laugh @ your DUMB ass even more...apk
He's justified after viperidaenz's name tossing.
Oh Lord, now that people know they can do this...
Slashdot has officially gone to hell.
All my liberal friends think I'm a conservative, all my conservative friends think I'm a liberal.
If you've got lots of plugins for Chrome, try disabling most or all of them and see if that makes a difference. Plugins run in the same process as the browser and can add JS code to 'background' pages that are present in memory even when you're not interacting with the plugin.
I don't know who wrote this bot, but the fact that it is adapting its babbling to recent events (like beta) shows that it is evolving, and this is a breakthrough in the area of Artificial Stupidity.
lucm, indeed.
Yeah, it's worth a /. article, even if you don't like Google. It's an interesting analysis of an architectural change - what's the best way to do some complicated but common things.
Bill Stewart
New Fast-Compression-only CPR http://preview.tinyurl.com/dy575ks
Fair enough, I do forget to separate the two. I do assume you understood what I meant, though.
Advertisers live by document.write.
Window.open is required for bookmarklets and reparenting to avoid windows being monitored by their creator.
Yes eval is trouble, but I'd rather see a badge indicating "easy to hack" when "use strict" is not in use. Many sites still use eval, so it's best to single them out vs breaking them.
Science & open-source build trust from peer review. Learn systems you can trust.