- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
Yes there is. If the JIT pre-compiles code it does so by using the capabilities of the concrete underlying CPU/hardware platform, which is frequently much faster than the "common denominator" code used in pre-compiled programs.
Of course in this concrete example this could be optimized for C++ too (this also depends on the compiler used), but I'm mainly talking about pre-built programs e.g. for Windows.
The fact aside that there is a "startup time" value, reporting the time with JVM startup time (via bash's time command) would be plain dumb, because this defeats the purpose of comparing the speed of the algorithm. Moreover, the startup time is pathological when the total runtime is only a few seconds and would distort the result in favour of the native program. In real life the startup time accounts only for a tiny fraction of the whole lifetime - this is even more true on long-running server systems.
Admin
bash-3.00$ time QSort 10000000 startup time: 0.562 sort time: 2.172
real 0m2.813s user 0m0.015s sys 0m0.031s bash-3.00$ time java -server QSort 10000000 startup time: 0.203 sort time: 1.828
real 0m2.317s user 0m0.031s sys 0m0.015s
No way, eh?
BTW, I propose that we move this to the forums to keep it in one place if we're going to go through more iterations.
Admin
Admin
Exactly, and don't attemt to keep the company-wide mandated "Synchronous Temporal" chat client, which happens to also be Eclipse-based in its latest version, running at the same time, despite the name rhyme. Remember, the time you have to live with your underpowered laptop, from the time before the laptop brand was sold off to the asian company already producing it, has been extended. Not to mention the eSnot mail client and application platform that easily spends 90% CPU on doing neither task well.
-Another Anon
Admin
some amazing public relations people.
Admin
You're not joking about the steakhouse! WTF?
Admin
Admin
They should have spent 39 Mio on advertising an 1 Mio on the rest (sw/hw) - that could have worked.
Admin
Admin
I'm not sure, but I guess the density of a floor should be measured in cubicles per square smoot.
Captcha: luctus. Sounds like Parry Hotter magic.
Admin
If you're having trouble with firefox paging when minimized, then you might want to set the config.trim_on_minimize option to 'false'. This used to be 'true' by default although I think this has been changed now.
Trimming the working set when minimized is a bit of a windows 3.1 hangover and not really needed anymore.
Admin
The REAL reason that eclipse freezes is normally problems with a plugin or conflicts among plugins. Most likely cause for me is the the mylar plugin, but it might also be one of the build in plugins.
The freezes are not caused by insane cpu usage, because when the occur, the cpu usage always drop to almost nothing(less then 4%) (Yes I have a cpu usage monitor visible at all times)
If you start eclipse from a console(bash/cmd) you will see that when the freeze stops, eclipse will throw an exception.
So you can see the freezes either as a good thing(Eclipse detected a problem, most likely a deadlock, and resolved it without crashing) or a bad thing(Plugins should not be ablo to freeze the gui). (Oh, and this is the same problem that firefox have with it's plugin).
Admin
Sun's x86 servers are nice though!
Admin
Hm this seems sneakily like what's written in the Boo Hoo biography of dot com failing boo.com
Admin
Ha hA HA ha Ha jAvA BAd HAhAHahaHa