Redian新闻
>
Re: Java Vs. C++ on performance!?
avatar
Re: Java Vs. C++ on performance!?# Java - 爪哇娇娃
m*t
1
If we talk about races in terms of speed, Java would still lose
on the Windows Track, because:
1. C++ would have already had its tires and engine changed/repaired
*before* the race starts, by some "certified professionals".
2. The interface between the tires and other parts of the car
is standard and designed for tires to be changed easily, so the time
it takes to change tires is kept in minimum.
A better analogy would be Java always runs like a turtle no matter
on any track, while C++ always a
avatar
d*x
2
Here are some links you may want to check out. The first one
covered pros and cons of Java pretty well, but its performance
comments are obviously outdated. Java may never be as fast as C
(OO perfromance penalty), but it's getting close to C++...and
still improving.
Why are we using Java Again? (1998)
http://www.cs.cornell.edu/ugrad/Tyma_Article.htm
Java performance (1999)
http://www.usenix.org/publications/login/1999-8/features/performance.html
Java/C++ Performance Test (1999?)
http://www.geko
avatar
z*c
3
It's really the design philosophy of C++ that makes it fast or
say efficient. Java is not designed to compete with C++ on
performance.
1. For the type of web programming, a lot of time is spent
on DB acess, network or maybe load balancing. As long as
the performance of language meets some bootom line, it's just
fine.
2. In the "gotta have it now" atmosphere of system development,
people would rather go with Java to have a running system next
month, instead of next year.
3. Because of the power a
avatar
m*t
4
I took a look at some of these, and feel their results are both
expected and misleading.
Although the performance issue of Java has been around since the
first day Java was introduced, the meaning of performance behind
the word has significantly changed.
Before JIT was introduced, Java was interpreted. Its performance
could never be anywhere close to C/C++'s. The difference could
be easily revealed from the results of tests like these shown below.
However, this is never the case in recent year

【在 d*x 的大作中提到】
: Here are some links you may want to check out. The first one
: covered pros and cons of Java pretty well, but its performance
: comments are obviously outdated. Java may never be as fast as C
: (OO perfromance penalty), but it's getting close to C++...and
: still improving.
: Why are we using Java Again? (1998)
: http://www.cs.cornell.edu/ugrad/Tyma_Article.htm
: Java performance (1999)
: http://www.usenix.org/publications/login/1999-8/features/performance.html
: Java/C++ Performance Test (1999?)

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。