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

Improve TransformKey to pack more kinds of transforms efficiently

    XMLWordPrintable

Details

    • Enhancement
    • Status: Resolved
    • P4
    • Resolution: Fixed
    • None
    • 19
    • core-libs

    Description

      The bespoke caching scheme in LambdaFormEditor.TransformKey allows keys to be very compact when all byte values fit in 4 bits, otherwise a byte array is allocated and used. This means that all transforms with a kind value above 15 will be forced to allocate and use array comparisons.

      Removing unused and folding some transforms to ensure all existing kinds can fit snugly within the 0-15 value range realize a minor improvement to footprint, speed and allocation pressure of affected transforms, e.g. ~300bytes/op reduction in the StringConcatFactoryBootstraps microbenchmark

      Attachments

        Issue Links

          Activity

            People

              redestad Claes Redestad
              redestad Claes Redestad
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: