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

Improve offheap memory performance

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 2.0.1
    • None
    • None

    Description

      Currently getting data to and from offheap is slow due to individual calls to getByte() and putByte()

      The following patch makes this a single call and is 10x faster

      benchmark:
           [java]  0% Scenario{vm=java, trial=0, benchmark=GetBytesOld} 82266.48 ns; σ=2532.87 ns @ 10 trials
           [java] 50% Scenario{vm=java, trial=0, benchmark=GetBytesNew} 7876.95 ns; σ=489.78 ns @ 10 trials
           [java]
           [java]   benchmark    us linear runtime
           [java] GetBytesOld 82.27 ==============================
           [java] GetBytesNew  7.88 ==
           [java]
           [java] vm: java
           [java] trial: 0
      

      Attachments

        1. memfix.txt
          1.0 kB
          T Jake Luciani
        2. memperf.txt
          1 kB
          T Jake Luciani

        Activity

          People

            tjake T Jake Luciani
            tjake T Jake Luciani
            T Jake Luciani
            Jonathan Ellis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: