Closed markdegrootnl closed 4 years ago
Please see https://github.com/apache/cordova-plugin-file-transfer/issues/258#issuecomment-662907931 - your input on the mailing list would be appreciated.
Hi @timbru31 I've added my input to the mailing list but is does not appear on the page. Does this take a while?
Yes, might take a bit. I’ve already got an email. Thanks!
Hi @timbru31 My input still hasn't been added to the mailing list page. Any idea why?
Note: after a PMC vote, this plugin has been undeprecated
PMC ?
Apache Project Management Commitee - in the case the Cordova PMC
Sure downloading data as a blob or arraybuffer and saving it using cordova-plugin-file works perfectly fine, however there is one big caveat.
I've run several tests downloading a 70MB file and two things stand out:
Now for some cold hard facts:
The main reason for this massive difference in performance lies in the fact that the FileTransfer plugin executes the entire process in native code and probably uses streams to download and save the file in one single step. The proposed alternative using XHR downloads the entire file in javascript first and sends the entire data Blob to the native File plugin to save the data to storage.
So in conclusion: Why is this plugin deprecated if the proposed alternative is notably slower?