|
Hits: 28
Improve the performance of your Java code
 4.0
Many algorithms are expressed most concisely as tail-recursive methods. Compilers can automatically transform such methods into loops and thereby improve program performance, but this transformation is not required by the Java language specification, so not all JVMs will perform it. This means that tail-recursive methods in the Java language can result in unexpectedly large memory usage. This article demonstrates that dynamic compilation maintains the language's semantics while static compilation often doesn't. Learn why this matters and get a bit of code to help you determine whether your just-in-time (JIT) compiler can transform tail recursion on code while preserving semantics.
Platform(s): n/a
Date: Jun, 02 2001
Author: http://www-106.ibm.com/developerworks/java/library/j-diag8?open&l=766,t=grj,p=ImprJcode
Ratings
Number of Ratings: 1 Votes
| 5 |
|
| 0% |
| 4 |
| 100%
|
| 3 |
| 0%
|
| 2 |
| 0%
|
| 1 |
| 0%
|
|
|
Others Scripts
CGI and Perl/Tips and Tutorials/XML and Perl
XML/Tips and Tutorials/Authoring
Python/Tips and Tutorials/XML and Python
XML/Tips and Tutorials/Miscellaneous
Python/Tips and Tutorials/Development
Java/Tips and Tutorials/Miscellaneous
Python/Tips and Tutorials/Development
XML/Tips and Tutorials/Java and XML
Java/Tips and Tutorials/Miscellaneous
XML/Tips and Tutorials/Miscellaneous
CGI and Perl/Tips and Tutorials/Miscellaneous
Java/Tips and Tutorials/Miscellaneous
Java/Magazine Articles/Miscellaneous
Java/Tips and Tutorials/Application Building
Java/Tips and Tutorials/Development
Java/Tips and Tutorials/Miscellaneous
Java/Tips and Tutorials/Security
Java/Tips and Tutorials/Miscellaneous
Python/Tips and Tutorials/XML and Python
Java/Tips and Tutorials/JSP and Servlets/Development
Python/Tips and Tutorials/XML and Python
Java/Tips and Tutorials/Miscellaneous
CGI and Perl/Tips and Tutorials/Miscellaneous
XML/Tips and Tutorials/Miscellaneous
Python/Tips and Tutorials/Development
Java/Tips and Tutorials/Miscellaneous
Java/Tips and Tutorials/Development
XML/Tips and Tutorials/Authoring
XML/Tips and Tutorials/RDF
Java/Tips and Tutorials/Miscellaneous
XML/Tips and Tutorials/Development
Java/Tips and Tutorials/Miscellaneous
XML/Tips and Tutorials/Authoring
XML/Tips and Tutorials/Authoring
Java/Tips and Tutorials/WAP and WML
Python/Tips and Tutorials/Miscellaneous
Java/Tips and Tutorials/Security
XML/Tips and Tutorials/Content Management
Java/Tips and Tutorials/Miscellaneous
CGI and Perl/Tips and Tutorials/Development
XML/Tips and Tutorials/Development
Java/Tips and Tutorials/JSP and Servlets/Networking
Java/Tips and Tutorials/XML and Java
Java/Tips and Tutorials/Database-Related
Java/Tips and Tutorials/Miscellaneous
Python/Tips and Tutorials/Miscellaneous
CGI and Perl/Tips and Tutorials/Development
Java/Tips and Tutorials/Development
Java/Tips and Tutorials/Communication
Java/Tips and Tutorials/Development
Java/Tips and Tutorials/Miscellaneous
Java/JavaBeans/Development Tools
Java/Tips and Tutorials/JSP and Servlets/Database-Related
Java/Tips and Tutorials/Development
Java/Tips and Tutorials/Application Building
Java/Tips and Tutorials/Security
Java/Tips and Tutorials/Miscellaneous
Java/Tips and Tutorials/Development
Java/Tips and Tutorials/Miscellaneous
Java/Tips and Tutorials/Development
Java/Applications/Development Tools
Java/Tips and Tutorials/Miscellaneous
Java/Applications/XML Tools
|