You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Vladimir Kotikov (JIRA)" <ji...@apache.org> on 2016/08/16 10:35:21 UTC

[jira] [Commented] (CB-11063) iOS: File reading doesn't use background thread

    [ https://issues.apache.org/jira/browse/CB-11063?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15422569#comment-15422569 ] 

Vladimir Kotikov commented on CB-11063:
---------------------------------------

[~mobidev3], we've been trying to reproduce these warnings without any success. Looks like all file reading operations already run in separate threads:
- readAsText: https://github.com/apache/cordova-plugin-file/blob/21298dce51568a2662adee8ff4bfc9b8c838d3a7/src/ios/CDVFile.m#L860-L879
- readAsDataURL: https://github.com/apache/cordova-plugin-file/blob/21298dce51568a2662adee8ff4bfc9b8c838d3a7/src/ios/CDVFile.m#L901-L914
- readAsArrayBuffer: https://github.com/apache/cordova-plugin-file/blob/21298dce51568a2662adee8ff4bfc9b8c838d3a7/src/ios/CDVFile.m#L935-L946
- readAsBinaryString: https://github.com/apache/cordova-plugin-file/blob/21298dce51568a2662adee8ff4bfc9b8c838d3a7/src/ios/CDVFile.m#L959-L971

If your issue still actual, please post a repro code that produces the warning.

> iOS: File reading doesn't use background thread
> -----------------------------------------------
>
>                 Key: CB-11063
>                 URL: https://issues.apache.org/jira/browse/CB-11063
>             Project: Apache Cordova
>          Issue Type: Improvement
>          Components: Plugin File
>    Affects Versions: 3.0.0
>         Environment: iOS
>            Reporter: Michael Schmidt
>              Labels: iOS, triaged, wfc
>
> On file reading the following warning appears:
> THREAD WARNING: ['File'] took '23.292236' ms. Plugin should use a background thread.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org