-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Offline deletion take too long time to remove a downloaded content #756
Comments
@phamduongnhatnam, can you reproduce this issue:
|
Yes,
P/s: Sometimes in Cordova (with Crosswalk) delete bigger file would cause the app to crash, I don't know but I think it consumes a lot of memory to delete a file. |
@phamduongnhatnam, I can't support Cordova or Crosswalk directly, but since you can reproduce slow deletes on desktop Chrome, it should be easy enough for us to look into. Thanks for the report. |
@joeyparrish Thanks, I know that cordova/crosswalk is not a main point for us. |
@phamduongnhatnam I was able to improve the delete performance. Please run this through your benchmarking and let us know if it meets your expectations. |
After looking into the speeds for removing data from IndexedDB, it was found that using a cursor was slower than the other methods. This change takes the remove logic and changes it to remove each key as part of one transaction. Closes #756 Change-Id: Iec3916650d8a4fe2b6353b604c070d8a0af7426c
This fix was just released in v2.1.2. |
@joeyparrish Once again your work is awesome! |
I'm just the messenger! Thanks belong to @vaage for this one. |
@vaage I did the benchmark again and it takes about 10 seconds to remove 1GB content in Chrome Desktop. The performance in Cordova+Crosswalk also improved. Thanks and congrats! |
What version of Shaka Player are you using?
2.0.6
Yes
master
?Yes
Are you using the demo app or your own custom app?
Custom
What browser and OS are you using?
Chrome Android, Crosswalk + Ionic + Cordova
What did you do?
Remove downloaded offline file. 18MB of content take ~34 seconds to remove.
What content did you load?
My own content
If standard demo asset, which one?
If custom asset, what manifest and license server URIs?
How did you interact with the content, if at all?
What did you expect to happen?
Immediate or nearly immediate content deletion.
What actually happened?
Deletion take very long time to remove the offline content.
The text was updated successfully, but these errors were encountered: