incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simon MacDonald (JIRA)" <>
Subject [jira] [Commented] (CB-1478) FileReader vs XHR bench
Date Fri, 21 Sep 2012 01:27:07 GMT


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:
>             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:

View raw message