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

avoid repetetive sorting in CFS.getColumnFamilyFromDisk

    XMLWordPrintableJSON

Details

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

    Description

      getColumnFamilyFromDisk starts out with

      List<String> files = new ArrayList<String>();
      lock_.readLock().lock();
      try

      { files.addAll(ssTables_); Collections.sort(files, new FileNameComparator(FileNameComparator.Descending)); }

      finally

      { lock_.readLock().unlock(); }

      this is silly, we should really keep the list sorted instead of re-sorting for each read.

      Attachments

        Activity

          People

            jbellis Jonathan Ellis
            jbellis Jonathan Ellis
            Jonathan Ellis
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: