You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Andrew Grieve (JIRA)" <ji...@apache.org> on 2013/03/21 03:45:15 UTC

[jira] [Resolved] (CB-2715) Use smarter buffer size for File.readAs* functions on Android

     [ https://issues.apache.org/jira/browse/CB-2715?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrew Grieve resolved CB-2715.
-------------------------------

    Resolution: Fixed

Committed!
https://git-wip-us.apache.org/repos/asf?p=cordova-android.git;a=commit;h=d2e4e35c370dd05a15b07f5c53d36c46ad2a0408
                
> Use smarter buffer size for File.readAs* functions on Android
> -------------------------------------------------------------
>
>                 Key: CB-2715
>                 URL: https://issues.apache.org/jira/browse/CB-2715
>             Project: Apache Cordova
>          Issue Type: Improvement
>          Components: Android
>            Reporter: Andrew Grieve
>            Assignee: Max Woghiren
>            Priority: Minor
>
> The current code uses a ByteArrayOutputStream (growable buffer) as well as a fixed (and too small) byte[].
> Better would be to create the byte[] once, make it the size of the "diff" variable.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira