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

skipBytes is used extensively, but is slow

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Low
    • Resolution: Fixed
    • Fix Version/s: 3.0.0 rc1
    • Component/s: None
    • Labels:
      None

      Description

      We skip a great deal to avoid materializing data. Ironically, however, skipping is just as (perhaps more) expensive, as it allocates a temporary array of the size of the number of bytes we want to skip.

      This trivial patch implements skipBytes more efficiently, and simplifies FileUtils.skipBytesFully

        Attachments

          Activity

            People

            • Assignee:
              benedict Benedict Elliott Smith
              Reporter:
              benedict Benedict Elliott Smith
              Authors:
              Benedict Elliott Smith
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: