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

Introduce BTreeSet with support for in-place reversal

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Low
    • Resolution: Duplicate
    • None
    • None
    • None

    Description

      Follow up to CASSANDRA-8099.

      We use TreeSet in a lot of places unnecessarily. This is especially a concern now that we store the set of rows we're searching for in both forward and (potentially) reverse order, which we have to construct twice. A very simple wrapper around BTree (which we had previously, but did not employ) would permit us to reverse this collection without any extra work, can be built more cheaply, consumes less memory, and supports the SearchIterator interface, so can be iterated more efficiently.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: