|
David Morris wrote: > Have you looked at Proxool? Their focus is on connection pooling but > looking at their approach may give you some ideas and it is also open > source http://proxool.sourceforge.net/index.html. They support CGLIB > (CGLIB2 as of this weekend) to create dynamic proxies that have some up > front overhead but in the long run they are much faster. With older > CGLIB versions, it takes a lot of calls to offset the startup overhead > but CGLIB2 is supposed to support persistable proxies that will address > the startup overhead but I haven't seen any examples. Just to be clear the startup cost is only the first time you make any proxy--to generate the class--so it only affects application startup. Once the first proxy has been made additional instances are very cheap. But you're right, CGLIB 2.0 is much faster to generate classes, thanks to the use of the ASM bytecode library. CGLIB also works on JDK 1.2 in case that is a requirement (Dynamic proxies require 1.3). Chris
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.