[ https://issues.apache.org/jira/browse/CB-1478?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13460118#comment-13460118 ]
Simon MacDonald commented on CB-1478: ------------------------------------- Okay, using the old way of communicating between the native and JS layers I was getting numbers in line with Daniel. After taking his test project and building it into an .apk with the latest changes from Andrew/Joe, basically and edge build I'm seeing: 100kb w/xhr: 54ms 100kb w/FileReader: 182ms 1M w/xhr: 96ms 1M w/FileReader: 790ms So the new bridge helps but xhr is still faster. Also, if we think that as the file size increases that using the FileReader will get exponentially worse then switching to xhr seems like a real win. Mind you let's see what other platforms report. > FileReader vs XHR bench > ----------------------- > > Key: CB-1478 > URL: https://issues.apache.org/jira/browse/CB-1478 > Project: Apache Cordova > Issue Type: Task > Components: Android, BlackBerry, iOS, WP7 > Affects Versions: 2.2.0 > Reporter: Brian LeRoux > Assignee: Joe Bowser > Priority: Minor > Fix For: 2.2.0 > > Attachments: IOBench-debug.apk > > > Long standing rumor that FileReader is/was faster than XHR debunked at > PhoneGap Day EU. Before we do anything to optimize our i/o, we need some > actual science on which is faster, on which platforms. -- 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