morten      01/08/16 08:28:29

  Modified:    java/src/org/apache/xalan/xsltc/dom DupFilterIterator.java
  Log:
  Removed a bad optimisation in the duplicate filter iterator.
  PR:           n/a
  Obtained from:        n/a
  Submitted by: [EMAIL PROTECTED]
  Reviewed by:  [EMAIL PROTECTED]
  
  Revision  Changes    Path
  1.4       +2 -9      
xml-xalan/java/src/org/apache/xalan/xsltc/dom/DupFilterIterator.java
  
  Index: DupFilterIterator.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/dom/DupFilterIterator.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- DupFilterIterator.java    2001/08/16 12:29:19     1.3
  +++ DupFilterIterator.java    2001/08/16 15:28:29     1.4
  @@ -1,5 +1,5 @@
   /*
  - * @(#)$Id: DupFilterIterator.java,v 1.3 2001/08/16 12:29:19 morten Exp $
  + * @(#)$Id: DupFilterIterator.java,v 1.4 2001/08/16 15:28:29 morten Exp $
    *
    * The Apache Software License, Version 1.1
    *
  @@ -75,9 +75,6 @@
       private int _last = 0;              // the number of nodes in this iterator
       private int _current = 0;
   
  -    // NOTE: NodeIteratorBase has a _startNode global variable
  -    //private int _start = -1;
  -
       /**
        * Creates a new duplicate filter iterator based on an existing iterator.
        * This iterator should be used with union expressions and other complex
  @@ -90,8 +87,6 @@
        // Save a reference to the source iterator
        _source = source;
   
  -     // THIS HERE IS WHAT WE MIGHT WANT TO DO FOR ALL ABSOLUTE ITERATORS
  -
        // Cache contents of id() or key() index right away. Necessary for
        // union expressions containing multiple calls to the same index, and
        // correct as well since start-node is irrelevant for id()/key() exrp.
  @@ -119,9 +114,7 @@
            _startNode = node;
            _last = 0;
            _source.setStartNode(node);
  -             
  -         if ((_data == null) || (_data.length != INIT_DATA_SIZE))
  -             _data = new int[INIT_DATA_SIZE];
  +         _data = new int[INIT_DATA_SIZE];
   
            // Gather all nodes from the source iterator, eliminate dups
            while ((node = _source.next()) != END) {
  
  
  

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

Reply via email to