Java Dynamic Programming

Source: Internet
Author: User

The techniques used in dynamic programming in Java are: Reflection (Dynamic proxy), javassist and ASM, these dynamic programming methods, compared to javassist above reflection in performance, but less than ASM, because Javassist adds a layer of abstraction. Javassist and reflection are low at the cost of implementation, and ASM is much more expensive than the Javassist source-level API because of the direct manipulation of bytecode. Several methods have their own application scenarios, such as Kryo using ASM, the pursuit of maximum performance. The nbeancopyutil uses javassist, which has significantly higher performance on object copies than other libraries and maintains high ease of use. The actual project is recommended to use Javassist to achieve the prototype, if the performance test found that javassist become a performance bottleneck, and then consider using other bytecode operation method to optimize.

Java Dynamic Programming

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.