60fb26ab0a
The speed up is achieved by multiple changes: 1) Use list() instead of listFiles() function. The former only returns a String array containing the relative pathnames, and therefore is faster and consumes less memory. 2) The list() function should only be called once. In the previous implementation, the function was called twice (for directories). The first time it was only checked against null and then thrown away. 3) The Strings do not have a "isHidden" property, obviously. However, hidden files can be easily distinguished by checking if the first character is a dot ("."). Performance tests were done in a directory with 12 sub-directories that have about 900 children in total. The old implementation needed about 400-500 ms to list the directory. With the new implementation, only 100ms are needed. |
||
---|---|---|
app | ||
gradle/wrapper | ||
screenshots | ||
.gitignore | ||
CHANGELOG.md | ||
LICENSE | ||
README.md | ||
build.gradle | ||
gradlew | ||
gradlew.bat | ||
settings.gradle | ||
signing.properties_sample |
README.md
Simple File Manager
A simple file manager for browsing and editing files and directories.
Can also be used for browsing root files and SDcard content. You can easily copy, move, delete and share anything you wish.
Contains no ads or unnecessary permissions. It is fully opensource, provides a Dark theme too.
This app is just one piece of a bigger series of apps. You can find the rest of them at http://www.simplemobiletools.com
License
Copyright 2016 SimpleMobileTools
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.