Uploaded image for project: 'Apache Cassandra'
  1. Apache Cassandra
  2. CASSANDRA-12013

Optimize the isEOF() checking in RAR

    XMLWordPrintableJSON

Details

    Description

      When I profile compaction in 2.1, I find the isEOF() is an expensive operation, and we do the check for each read in RAR, which I think is unnecessary.

      I attach a patch to only check isEOF() when we need to rebuffer, and then I do not see it from hotspot.

      Attachments

        Activity

          People

            dikanggu Dikang Gu
            dikanggu Dikang Gu
            Dikang Gu
            Stefania Alborghetti
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: