-
Notifications
You must be signed in to change notification settings - Fork 6k
Description
Hi,
I am working on Nvidia Shield, with and external USB 3 storage, the storage is set as "This device's storage", the apps data is moved to the storage.
I am downloading DASH streams, using DownloadService and DownloadManager.
There is performance issue because of the quantity of files generated by exoplayer Downloaders.
After having downloaded a few GB of data, I now have thousands of .exo files in my download folder. Since then, everytime I boot my device when the external device is mounted, I can see the process /system/bin/sdcard is taking up to 40% of cpu for a while. It's probably indexing all these files.
Same thing when I start my app, the first time I will play a media: the same android indexation process will start and affect my device perfomance, my media will only play after a few seconds.
Once it is indexed every other media will play instantly.
Moreover, exoplayer's actionFile already has its own indexation. So this heavy system indexation process does not really help exoplayer.
Handling thousands of files on the storage is really tough for the system.
Is there any way to optimize that?
Once a media is downloaded, do you have a way to merge or archive all it's .exo files in just 1 file?
Or maybe there is another solution, please advise.
Thanks