jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexandre Martins" <alexandremart...@gmail.com>
Subject Problems with NodeIterator - iter.next() is better than iter.nextNode()
Date Fri, 30 Mar 2007 12:10:58 GMT
Hi All,

The NodeIterator class has a method called nextNode(), using this is not
necessary do a cast. However, using the next method (normal from Iterator) ,
the results are so better (iteration time).

 (Node)iter.Next: 453 ms
 iter.NextNode(): 3552 ms

Somebody knows why?

BR,

-- 
Alexandre Costa Martins
CESAR - Recife Center for Advanced Studies and Systems
Software Engineer and Software Reuse Researcher
MSc Candidate at Federal University of Pernambuco
RiSE Member - http://www.rise.com.br

E-mail: alexandre.martins@cesar.org.br
MSN: xandecmartins@hotmail.com
GTalk: alexandremartins@gmail.com
Skype: xandecmartins
Mobile: +55 (81) 9929-9548
Office: +55 (81) 3425-4763
Fax: +55 (81) 3425-4701

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message