Considering the Write Performance Optimization series, the main reason is that we have seen too many outstanding JavaCode(Some code can be opened to me ). Many JavaProgramWhen writing a program, the operator does not know much about the JVM and some operating mechanisms of the language, which leads to the performance of the Code.SevereProblem (performance is more than one order of magnitude worse, I call it "serious ").
Although there is an introduction to Java performance on the Internet, many of the content only tells readers "this is the case", rather than "why this is the case ". A typical example is about string and stringbuffer (stringbuilder). I will explain how to use it without saying why. This phenomenon has led many Java programmers to only know about it. Therefore, this series of posts will try to introduce some "why" stuff (that is, learning how and why in the technology trilogy), hoping to help Java programmers.
First, let's talk about the following topics:
1. Basic Type vs reference type
2. String filtering practices
3. Garbage Collection (GC)
4. Finalize function 5 ,......
Copyright Notice
All original posts in this blogArticleThe author retains the copyright. This statement must be reprinted to keep this article complete, and the author's programming preferences and original addresses in the form of hyperlinks should be noted:
Http://program-think.blogspot.com/2009/03/java-performance-tuning-0-overview.html