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)