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

skipBytes is used extensively, but is slow

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 3.0.0 rc1
    • None
    • 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

            benedict Benedict Elliott Smith
            benedict Benedict Elliott Smith
            Benedict Elliott Smith
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: