You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by di...@apache.org on 2005/12/27 07:45:45 UTC

svn commit: r359182 - /webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/java/DatabindingTemplate.xsl

Author: dims
Date: Mon Dec 26 22:45:42 2005
New Revision: 359182

URL: http://svn.apache.org/viewcvs?rev=359182&view=rev
Log:
double the size of message we are able to handle and halve the time taken if we don't cache, is there a reason not to do it? :)

Modified:
    webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/java/DatabindingTemplate.xsl

Modified: webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/java/DatabindingTemplate.xsl
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/java/DatabindingTemplate.xsl?rev=359182&r1=359181&r2=359182&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/java/DatabindingTemplate.xsl (original)
+++ webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/java/DatabindingTemplate.xsl Mon Dec 26 22:45:42 2005
@@ -42,7 +42,7 @@
         <xsl:for-each select="param">
             <xsl:if test="@type!=''">
                 if (<xsl:value-of select="@type"/>.class.equals(type)){
-                return <xsl:value-of select="@type"/>.Factory.parse(param.getXMLStreamReader()) ;
+                return <xsl:value-of select="@type"/>.Factory.parse(param.getXMLStreamReaderWithoutCaching()) ;
                 }
             </xsl:if>
         </xsl:for-each>
@@ -111,7 +111,7 @@
                     java.lang.reflect.Method parseMethod = type.getMethod("parse",new Class[]{javax.xml.stream.XMLStreamReader.class});
                     obj = null;
                     if (parseMethod!=null){
-                        obj = parseMethod.invoke(null,new Object[]{param.getXMLStreamReader()});
+                        obj = parseMethod.invoke(null,new Object[]{param.getXMLStreamReaderWithoutCaching()});
                     }else{
                         //oops! we don't know how to deal with this. Perhaps the reflective one is a good choice here
                     }



Re: svn commit: r359182 - /webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/java/DatabindingTemplate.xsl

Posted by Davanum Srinivas <da...@gmail.com>.
ROTFL :)

-- dims

On 12/30/05, Sanjiva Weerawarana <sa...@opensource.lk> wrote:
> On Tue, 2005-12-27 at 06:45 +0000, dims@apache.org wrote:
> > Author: dims
> > Date: Mon Dec 26 22:45:42 2005
> > New Revision: 359182
> >
> > URL: http://svn.apache.org/viewcvs?rev=359182&view=rev
> > Log:
> > double the size of message we are able to handle and halve the time
> >  taken if we don't cache, is there a reason not to do it? :)
>
> Hmmmm. Let me see .. no, I don't work for a memory or processor company
> so, nope, can't see any reason!
>
> Good job finding this :).
>
> Sanjiva.
>
>


--
Davanum Srinivas : http://wso2.com/blogs/

Re: svn commit: r359182 - /webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/java/DatabindingTemplate.xsl

Posted by Davanum Srinivas <da...@gmail.com>.
ROTFL :)

-- dims

On 12/30/05, Sanjiva Weerawarana <sa...@opensource.lk> wrote:
> On Tue, 2005-12-27 at 06:45 +0000, dims@apache.org wrote:
> > Author: dims
> > Date: Mon Dec 26 22:45:42 2005
> > New Revision: 359182
> >
> > URL: http://svn.apache.org/viewcvs?rev=359182&view=rev
> > Log:
> > double the size of message we are able to handle and halve the time
> >  taken if we don't cache, is there a reason not to do it? :)
>
> Hmmmm. Let me see .. no, I don't work for a memory or processor company
> so, nope, can't see any reason!
>
> Good job finding this :).
>
> Sanjiva.
>
>


--
Davanum Srinivas : http://wso2.com/blogs/

Re: svn commit: r359182 - /webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/java/DatabindingTemplate.xsl

Posted by Sanjiva Weerawarana <sa...@opensource.lk>.
On Tue, 2005-12-27 at 06:45 +0000, dims@apache.org wrote:
> Author: dims
> Date: Mon Dec 26 22:45:42 2005
> New Revision: 359182
> 
> URL: http://svn.apache.org/viewcvs?rev=359182&view=rev
> Log:
> double the size of message we are able to handle and halve the time
>  taken if we don't cache, is there a reason not to do it? :)

Hmmmm. Let me see .. no, I don't work for a memory or processor company
so, nope, can't see any reason!

Good job finding this :).

Sanjiva.


Re: svn commit: r359182 - /webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/java/DatabindingTemplate.xsl

Posted by Sanjiva Weerawarana <sa...@opensource.lk>.
On Tue, 2005-12-27 at 06:45 +0000, dims@apache.org wrote:
> Author: dims
> Date: Mon Dec 26 22:45:42 2005
> New Revision: 359182
> 
> URL: http://svn.apache.org/viewcvs?rev=359182&view=rev
> Log:
> double the size of message we are able to handle and halve the time
>  taken if we don't cache, is there a reason not to do it? :)

Hmmmm. Let me see .. no, I don't work for a memory or processor company
so, nope, can't see any reason!

Good job finding this :).

Sanjiva.