media/library/core/src
olly 8c47b02083 Reduce number of calls to File.length()
Calls to File.length() can be O(N) where N is the number of files
in the containing folder. This is believed to be true for at least
FAT32. Repeated calls for the same file tend to be faster,
presumably due to caching in the file system, however are still
surprisingly expensive. Hence minimizing the number of calls is
preferable.

Issue: #4253
PiperOrigin-RevId: 228179921
2019-01-08 07:38:31 +00:00
..
androidTest Move CachedContentIndex and SimpleCacheSpan tests to robolectric 2018-12-01 00:07:48 +00:00
main Reduce number of calls to File.length() 2019-01-08 07:38:31 +00:00
test Reduce number of calls to File.length() 2019-01-08 07:38:31 +00:00