Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / September 2006

Tip: Looking for answers? Try searching our database.

jview vs java.exe (speed)

Thread view: 
Thomas Magma - 31 Aug 2006 16:25 GMT
Hi,

I just got a new OS (XP) that didn't include a JVM or jview. I was using
jview to run my local Java applications but now have to switch to java.exe.
What a difference!! and not for the better. I have a little application that
does DSP and animation and it appears to be running between 5 and 10 as slow
now. Am I doing something wrong? If not, how do I reinstall jview?

Thomas
Andrew Thompson - 31 Aug 2006 16:37 GMT
...
> I just got a new OS (XP) that didn't include a JVM or jview. I was using
> jview to run my local Java applications but now have to switch to java.exe.
> What a difference!! and not for the better.

JView - launching the MS JVM, provides
access to am obsolete, unsupported VM
with security holes that will *never* be fixed.

The manufacturers own 'support' advice for the
MSVM amounted to*
1) a tool to identify dependencies on MS
specific classes, and
2) a link to Sun, for the Java Plug-In.

* last time I checked, over 18 months ago.

The MSVM does not support Swing (out of the box)
or anything else since ..Java 1.2.

>...I have a little application that
> does DSP and animation and it appears to be running between 5 and 10 as slow
> now.

Apparently this tool you refer to uses no MS
specific classes, so that leaves you with option 2).

>..Am I doing something wrong? If not, how do I reinstall jview?

1) Get a time machine..
..

Andrew T.
Thomas Magma - 31 Aug 2006 18:08 GMT
>>..Am I doing something wrong? If not, how do I reinstall jview?
>
> 1) Get a time machine..
> ..

The work I mainly use Java for is internal lab work. Java is great at
crunching numbers and I really need the speed and not so much the
portability. So what I just did to solve my speed problem was to install the
MSJVM off the net (msjavx86.exe) and then install an old JDK which is needed
to compile.

For the application I was running I noticed a speed difference of just over
10 times. That's not mice nuts. I'm not sure why Sun can't make their
java.exe perform at a level equivalent (or even close) to jview? I mean,
aren't they the ones that developed the language in the first place?

Thomas
Andrew Thompson - 31 Aug 2006 18:35 GMT
> >>..Am I doing something wrong? If not, how do I reinstall jview?
> >
[quoted text clipped - 11 lines]
> java.exe perform at a level equivalent (or even close) to jview? I mean,
> aren't they the ones that developed the language in the first place?

You have struck one of the area where the MSVM shines
brightly - it is fast at what (little) it does.  Although I have
never seen a repeatable test that supported it was *ten*
times faster than the Sun JVM, when doing raw number
crunching, it usually beat the Sun VM by a factor
of at least 2-4 (twice to four times as fast), from memory.

I suspect that part of it is that MS used lower level
calls to the hardware, much lower and faster than what
they are prepared to publicly document.
If that is the case, they would always have the potential
to build a faster VM than Sun could.

Also, Sun seems to concentrate their efforts on optimising
other things, rather than raw number-crunching ability
(which is rarely the bottleneck).

(concedes)  You might still be able to find an
'unauthorised' distribution of the MSVM on the net.
Someone was offering it some time ago after MS
withdrew it's JVM from IE.  I have not checked
recently if the site is still active, and do not have the
URL handy.  I suppose Google is your best bet there.

Andrew T.
Oliver Wong - 31 Aug 2006 19:38 GMT
>>>..Am I doing something wrong? If not, how do I reinstall jview?
>>
[quoted text clipped - 11 lines]
> java.exe perform at a level equivalent (or even close) to jview? I mean,
> aren't they the ones that developed the language in the first place?

   This might be like asking why a Microsoft employee can complete a 100
meter *dash* in 15 seconds, whereas a Sun employee takes 20 seconds to
complete a 100 meter *hurdle*. The so-called Microsoft "JVM" doesn't
implement the Java standard, so the two virtual machines aren't actually
competing under the same conditions.

   If you need pure number crunching abilities without regards to
portability, I heard FORTRAN is one of the best languages for that.

   - Oliver
~Glynne - 31 Aug 2006 21:16 GMT
> >>..Am I doing something wrong? If not, how do I reinstall jview?
> >
[quoted text clipped - 13 lines]
>
> Thomas

Since you mention "number crunching" and lousy performance in your
post, you are probably running into issues with the terrible
performance of the trig functions in the newer JVMs.

Java 1.3 was the last release with good trig performance.  The trig
functions were "fixed" in the 1.4 release to provide infinite precision
during argument reduction.  Now you can get an accurate value for
sin(2000000000).....if you're willing to wait long enough.

If you need better performance you either have to
 1) code your own routines in Java (e.g. from the Cephes library), or
 2) use JNI to access the C math functions.

~Glynne
Arne Vajhøj - 01 Sep 2006 01:39 GMT
> The work I mainly use Java for is internal lab work. Java is great at
> crunching numbers and I really need the speed and not so much the
[quoted text clipped - 6 lines]
> java.exe perform at a level equivalent (or even close) to jview? I mean,
> aren't they the ones that developed the language in the first place?

This does not match my experience.

My experience is that SUN JVM passed MS JVM when SUN JVM
went from 1.3.1 to 1.4.1 (I have never tested 1.4.0).

But of course it depends on what the program do.

Arne


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.