jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Guggisberg" <stefan.guggisb...@gmail.com>
Subject Re: Problems with NodeIterator - iter.next() is better than iter.nextNode()
Date Fri, 30 Mar 2007 12:31:52 GMT
hi alexandre,

On 3/30/07, Alexandre Martins <alexandremartins@gmail.com> wrote:
> 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?

no, and it's frankly hard to believe. both implementations should IMO be
identical, apart from the type cast of course.

where did you get the NodeIterator from?

cheers
stefan

>
> 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
View raw message