Talk:Java performance: Difference between revisions

Content deleted Content added
m Replaced deprecated <source> tags with <syntaxhighlight> (via WP:JWB)
syntaxhighlight & fix lint
 
(3 intermediate revisions by 2 users not shown)
Line 1:
{{WikiProject Javabanner shell|class=B |importance=mid}}
{{WikiProject Software |class=BJava |importance=mid}}
{{WikiProject Software |importance=mid}}
}}
{{Broken anchors|links=
* <nowiki>[[Metadata#Program metadata|metadata]]</nowiki>
}}
 
== "x times slower" ==
Line 55 ⟶ 60:
While Java may be able to do escape analysis more often than C++, it can be used sometimes in C++. For example the following code:
 
<syntaxhighlight lang="text">
<code>
class Bar {
int inc(int i) { return i + 1 }
Line 65 ⟶ 70:
delete b;
}
</syntaxhighlight>
</code>
 
with this code the compiler can know, that b will never be used outside of the function foo. I agree that pointers make escape analysis harder, but under certain conditions the compiler can verify that varibles do not escape a funciton. BTW, I have not programmed in C++ in a long time. Thus I may have made some syntactic errors.
Line 304 ⟶ 309:
If you would like me to provide more information on the talk page, contact [[User:Cyberpower678]] and ask him to program me with more info.
 
From your friendly hard working bot.—[[User:Cyberbot II|<span style="color:green;font-family:Neuropol">cyberbot II</span>]] [[User talk:Cyberbot II|<sup style="color:green;font-family:arnprior">Notify</sup>]]<sub style="margin-left:-6.1ex;color:green;font-family:arnprior">Online</sub> 18:33, 8 December 2013 (UTC)
 
== Self-contradictory Information in Summary and Body ==