Java performance Optimization--opening __java

Source: Internet
Author: User
Java performance Optimization--opening

From 2008 began to use the Java language programming, has done J2SE, EE and other development. From the beginning to write the program, to the present request to write their own high-quality procedures, in the process of the use of the language has accumulated some experience and experiences.

The strength of the Java language is its open source, offering a variety of options for developers, as well as many organizations offering a variety of open contracts and toolkits. As a developer, there are many options to implement a feature. But among the many choices, how to choose the one that is most appropriate to you is essential. Of all the developers I know, people who have worked for more than 10 years, almost all of them focus on completing the function, and few people think about how to do it better from the business logic they're going to do, and thus lose the leverage that Java has to offer us.

As far as Java performance is concerned, from my personal experience, whether using JDK's own APIs or Third-party libraries, the key is to understand and reasonably use the various data structures provided by the JDK itself, the APIs developed by the concurrency program, the IO flow APIs, and so on, familiar with the common design patterns, This includes concurrent programming patterns, because almost all of the Third-party libraries we use are designed based on these APIs and design patterns. In addition, it includes optimizations for the JVM.

This series of blogs will describe how to optimize Java program performance in the following three ways:

1 optimization of Java code level

2 Java Design-level optimization

3 optimization of Java Virtual machine

From the level of performance tuning, you should first design tuning, followed by code tuning, and finally JVM tuning. But for most developers, it's almost all code-level optimizations, so I'm starting with code-level optimizations.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.