cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Grieve (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CB-2715) Use smarter buffer size for File.readAs* functions on Android
Date Thu, 21 Mar 2013 02:45:15 GMT

     [ 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

Mime
View raw message