Uploaded image for project: 'Hibernate ORM'
  1. Hibernate ORM
  2. HHH-8961

Reduce allocation cost of org.hibernate.cache.spi.CacheKey instances

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.2.9, 4.3.2, 6.0.0
    • Component/s: None
    • Labels:
    • Last commented by a user?:
      true

      Description


      Instances of org.hibernate.cache.spi.CacheKey are a hot allocation point, and each one is currently taking 32 bytes each, we can reduce that to 24 bytes each.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

              Hide
              brmeyer Brett Meyer added a comment -

              Thanks Sanne!

              Show
              brmeyer Brett Meyer added a comment - Thanks Sanne!
              Hide
              brmeyer Brett Meyer added a comment -

              Note that this will be reverted by HHH-9010. A regression was found – see the discussion on https://github.com/hibernate/hibernate-orm/pull/689

              Show
              brmeyer Brett Meyer added a comment - Note that this will be reverted by HHH-9010 . A regression was found – see the discussion on https://github.com/hibernate/hibernate-orm/pull/689

                People

                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Development