cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vladimir Kotikov (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-11063) iOS: File reading doesn't use background thread
Date Tue, 16 Aug 2016 10:35:21 GMT

    [ 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


Mime
View raw message