mkwan       2003/03/14 09:49:25

  Modified:    java/src/org/apache/xml/dtm/ref/sax2dtm Tag: XSLTC_DTM
                        SAX2DTM2.java
  Log:
  XSLTC_DTM performance work
  Small improvement in SAX2DTM2.getStringValueX() and dispatchCharacterEvents()
  by saving one local variable.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.27  +6 -10     
xml-xalan/java/src/org/apache/xml/dtm/ref/sax2dtm/Attic/SAX2DTM2.java
  
  Index: SAX2DTM2.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xalan/java/src/org/apache/xml/dtm/ref/sax2dtm/Attic/SAX2DTM2.java,v
  retrieving revision 1.1.2.26
  retrieving revision 1.1.2.27
  diff -u -r1.1.2.26 -r1.1.2.27
  --- SAX2DTM2.java     10 Mar 2003 21:04:16 -0000      1.1.2.26
  +++ SAX2DTM2.java     14 Mar 2003 17:49:25 -0000      1.1.2.27
  @@ -2736,14 +2736,12 @@
   
       if (type == DTM.ELEMENT_NODE || type == DTM.DOCUMENT_NODE)
       {
  -      int firstChild = _firstch2(identity);
  -      if (DTM.NULL != firstChild)
  +      int startNode = identity;
  +      identity = _firstch2(identity);
  +      if (DTM.NULL != identity)
         {
        int offset = -1;
        int length = 0;
  -     int startNode = identity;
  -
  -     identity = firstChild;
   
        do 
        {
  @@ -2849,14 +2847,12 @@
   
       if (type == DTM.ELEMENT_NODE || type == DTM.DOCUMENT_NODE)
       {
  -      int firstChild = _firstch2(identity);
  -      if (DTM.NULL != firstChild)
  +      int startNode = identity;
  +      identity = _firstch2(identity);
  +      if (DTM.NULL != identity)
         {
        int offset = -1;
        int length = 0;
  -     int startNode = identity;
  -
  -     identity = firstChild;
   
        do 
        {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to