Return-Path: Delivered-To: apmail-xml-axis-dev-archive@xml.apache.org Received: (qmail 4881 invoked by uid 500); 3 Jul 2002 19:30:33 -0000 Mailing-List: contact axis-dev-help@xml.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@xml.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list axis-dev@xml.apache.org Received: (qmail 4871 invoked from network); 3 Jul 2002 19:30:33 -0000 Message-ID: From: Tom Jordahl To: "'axis-dev@xml.apache.org'" Subject: RE: Property Descriptor Caching Date: Wed, 3 Jul 2002 15:30:35 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N +1 -- Tom Jordahl Macromedia -----Original Message----- From: scheu@us.ibm.com [mailto:scheu@us.ibm.com] Sent: Wednesday, July 03, 2002 3:21 PM To: axis-dev@xml.apache.org Subject: Property Descriptor Caching Every time a Bean/Simple Serializer/Deserializer is invoked, it constructs a PropertyDescriptor array (and possibly PropertyDescriptor Map). I have code in my sandbox that should improve performance. I added the following two methods to TypeDesc, which get and cache the array and map: public BeanPropertyDescriptor[] getPropertyDescriptors(); public Map getPropertyDescriptorMap(); // propertyMap used in the Bean/Simple Deserializers I changed the Bean/Simple Serializer/Deserializer to get the propertyDescriptor array/map via the above methods. Having these methods on the TypeDesc allows extended serializers to get/cache this information in a uniform way. Any objections to adding this code? Rich 'Shirley' Scheuerle IBM WebSphere & Axis Web Services Development 512-838-5115 (IBM TL 678-5115)