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

Improve performance of folderSize function

    XMLWordPrintableJSON

Details

    Description

      FileUtils.folderSize function recursively traverses the directory tree using listFiles method. This is no longer efficient as Java 7 offers much better Files.walkFileTree method. It makes the method work twice faster according to my tests.

      Attachments

        Issue Links

          Activity

            People

              briareus Briareus
              briareus Briareus
              Briareus
              Stefania Alborghetti
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 2h
                  2h
                  Remaining:
                  Remaining Estimate - 2h
                  2h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified