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

Cache BufferedRandomAccessFile.length

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Fix Version/s: 0.7 beta 1
    • Component/s: None
    • Labels:
      None

      Description

      Profiling shows that BufferedRandomAccessFile.length is eating up an unexpected amount of cpu. It believe it is the call through the "native barrier" that is causing it. We often call the length method via is end of file when reading data. We can add caching of the file length to avoid this call most times.

        Attachments

        1. CASSANDRA-950.patch
          4 kB
          Johan Oskarsson
        2. CASSANDRA-950.patch
          3 kB
          Johan Oskarsson

          Activity

            People

            • Assignee:
              johanoskarsson Johan Oskarsson
              Reporter:
              johanoskarsson Johan Oskarsson
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: