Re: [OS-JIRA] Created: (CAY-387) [PATCH] iterators are more efficient than for loop indexing and get(i)

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Tue Oct 04 2005 - 13:25:20 EDT

  • Next message: jira-norepl..bjectstyle.org: "[OS-JIRA] Created: (CAY-388) Validate project does not check query root"

    Not sure if Dave is on this list, so I posted a link to this thread
    as a comment attached to the issue. BTW, I agree with Cris.

    Andrus

    On Oct 4, 2005, at 9:20 AM, Cris Daniluk wrote:

    > Says who?
    >
    > Used properly, for/get will blow away iterators any day. Hotspot
    > generally optimizes your readonly iterations to a for loop.
    >
    >
    >> Using for loop indexing with list.get(i) is less efficient than
    >> using Iterators. This patch replaces inefficient code were simple
    >> to do.
    >>
    >>
    >> ---------------------------------------------------------------------
    >> JIRA INFORMATION:
    >> This message is automatically generated by JIRA.
    >>
    >> If you think it was sent incorrectly contact one of the
    >> administrators:
    >> http://objectstyle.org/jira/secure/Administrators.jspa
    >>
    >> If you want more information on JIRA, or have a bug to report see:
    >> http://www.atlassian.com/software/jira
    >>
    >>
    >>
    >
    >



    This archive was generated by hypermail 2.0.0 : Tue Oct 04 2005 - 13:25:23 EDT