-
Notifications
You must be signed in to change notification settings - Fork 990
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
Read/write extremely slow on IOS #474
Comments
We definetely should move the utf8-encoding into native layer instead of using JS-layer therefor. |
@itinance Firstly, thank you for all your work on the library! I was wondering if there's a plan on moving the encoding into native on iOS? I did a very rudimentary test (literally just changed the default return type in the native code) and it looks like a 10x or greater speedup on large files. All I did was swap |
Is this fixed? |
not fixed for me. read and write freeze complety the UI for many seconds. not usable unfortunably |
Same here |
+1 |
any update ? |
I use RN-fetch-blob for read/write files |
I use
|
Can confirm that there is a significant difference between android and iOS. This issue also affects e.g. the Edit: We were (and still are) actually using rn-fetch-blob. I was testing react-native-fs because our package was having issues. But this bug sent me straight back. Seems like a pretty big deal breaker to me. |
how did you write file with fetch ? |
I will test it today when i get the Mac back |
Same problem. Downloading on iOS is extremely slow even on LAN connection. |
uploadings getting slow with uri. |
I also had to switch to Works fine with I'd move the encoding to native for this library with a PR, but atm I'm pretty occupied. |
I got same situation when I read 3M file from IOS device. It takes 1.2 seconds to read it. I don't know what does it read file in js thread |
This library is absolutely useless for dealing with files bigger than 1M. The reason – it doesn't work with binary data and converts to base64, which is slow. I am switching to https://github.com/joltup/rn-fetch-blob |
I'm writing a 5mo json in a file with utf8 encoding.
it take +-50ms with android
it take +-6000ms with ios iphone 5
reading the file take
250ms with android
13000ms with ios.
i get empty return when using base64 option on Ios only
my code :
and how i made the calls
I need to keep utf8, any advice ?
The text was updated successfully, but these errors were encountered: