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

Records deserialization is slow

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 14, 15, 16
    • Fix Version/s: 15
    • Component/s: core-libs
    • Labels:

      Backports

        Description

        Records deserialization is slow compared to equivalent classical classes. I created a JMH benchmark to se how it compares (ran it on JDK14) and it appears that records deserialization is about 16x slower and produces 7x garbage.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                plevart Peter Levart
                Reporter:
                plevart Peter Levart
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: