Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4809552

Optimize Arrays.fill(...)

    XMLWordPrintable

Details

    • b07
    • x86
    • windows_2000
    • Not verified

    Backports

      Description

        Name: rmT116609 Date: 01/28/2003


        DESCRIPTION OF THE PROBLEM :
        System.arraycopy() performs brilliantly on Intel/AMD CPUs as it maps right on down to a single REP MOVS instruction. Perhaps an order of magnitude faster than the same thing in a normal loop.

        I'd like a System.arrayfill() method that could be built on a REP STOS operation.

        (Today I'm initializing buffers for a b-tree. Need to blank-fill the text buffer - a pretty common thing to do. Index efficiency is critical to DB operations, so speed matters here.)

        (Review ID: 180473)
        ======================================================================

        Attachments

          Issue Links

            Activity

              People

                never Tom Rodriguez
                rmandalasunw Ranjith Mandala (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: