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

From: Cris Daniluk (cris.danilu..mail.com)
Date: Tue Oct 04 2005 - 09:20:51 EDT

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

    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 - 09:20:53 EDT