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."
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.
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.
Solution : Unplug fan cable.
Gooby Pls!
What's Java got to do with anything in this article? Except Java and Javascript share common letters in their name.
We have the same performance critical application in both Java and Javascript. After doing many optimizations in JavaScript (and therefore running into several JavaScript JIT compiler bugs in different browser versions!), JavaScript is still much slower. JS is indeed a promise, but only because it is in newborn state if we consider using it for larger applications.
It is not an accident that Google tries to replace JavaScript with Dart, which already outperforms JavaScript and is more suitable for larger applications. JavaScript was never intended for such purpose. It is very good however, for scripting a web page.
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.
This your first time here?
You are welcome on my lawn.
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.
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"
How stupid! The concept of multi-threading has been around since the 1950s.
Every day now I'm still amazed at how little newer members of the technology community actually know about the history, at least some concept, of where modern computing originated.
Harrison's Postulate - "For every action there is an equal and opposite criticism"
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.
Actually it takes 70 ms to start (and stop) the JVM.
I call bullshit. Just tested this myself:
Chrome Experiments on a CPU intensive page with half screen filled: 23% CPU
Firefox on the same page: 49% CPU
Chrome playing a 1080p Youtube Video: 7% CPU
Firefox playing a 1080p Youtube Video: 3% CPU, Flash plugin for Firefox 8% CPU
In both cases the GPU load appeared identical. Firefox v26, Chrome v32. I don't have IE10 or the flash player plugin for IE9 so it couldn't be tested.
Dart is a silly idea in an age where we have vms running scripts in browsers. Even Mozilla knows to develop asm.js and let the user choose their language. If people can even use types on ES6 then Dart isn't necessary.
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
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.
One can always find predecessors for any technology going back to the Flintstones era. Of course, there were many attempts at vector processing, SIMD, instruction pipelining, dual pipelines, speculative execution and so forth going way back to the early days of modern computing. Most of these early efforts were very low-level in nature.
I think the modern concept of threads was solidified by the Mach kernel group at CMU in the late '80s. Chances are, they picked up on some academic research that was working as a proof of concept in some other university labs, and made it suitable for actual general purpose use.
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/
[1] 'Interpreted' in V8 really means compiled with no optimisations.
I am TheRaven on Soylent News
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.
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.
Why are you using Flash for Youtube in Firefox?
You do realize you have to be running dev channel (chromium) to see anything different, right? That aside, I don't see what you did having anything to do with what they did. You're not testing what they are fixing.
Are agnostics skeptical of unicorns too?
Simple, I rarely use Firefox and as such everything is set at defaults. Why do I use it for IE? Because you can't do youtube any other way in IE9.
No I'm calling out the generic bull from the parent. Every time they announce a Chrome release some shill comes in and says IE is faster than Firefox and Chrome just like every time they announce a Firefox release someone bitches that Firefox instantly uses 100GB of ram just to display about:blank or some crap like that.
The fact is it's wrong. At least on default setups. If the GP somehow stuffed up his install or loaded some resource hungry plugins than that's his problem. No reason to spread miss-information though.
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.