cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Briareus (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CASSANDRA-10677) Improve performance of folderSize function
Date Mon, 09 Nov 2015 09:10:11 GMT
Briareus created CASSANDRA-10677:
------------------------------------

             Summary: Improve performance of folderSize function
                 Key: CASSANDRA-10677
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-10677
             Project: Cassandra
          Issue Type: Improvement
          Components: Local Write-Read Paths
         Environment: Ubuntu 14. JDK 7
            Reporter: Briareus
             Fix For: 2.1.x
         Attachments: Optimized_folderSize_function_to_use_Java_7_nio_walkFileTree_method_.patch

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. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message