{ "id": "62784", "key": "TIMOB-2152", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "11227", "name": "Release 1.5.0 M02", "archived": true, "released": true, "releaseDate": "2010-11-22" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:58:15.000+0000", "created": "2011-04-15T03:12:05.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "android_refactor", "filesystem", "performance", "xhr" ], "versions": [], "issuelinks": [], "assignee": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:58:15.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "{html}

1.5.0.70ce98 g2 running 2.2

\n

1.BaseUI>Web Views>XHR to FileSystem
\n2.tap the test and time how long it takes for the page to load
\nresults:the new window take about 3 seconds to load.

{html}", "attachment": [ { "id": "18117", "filename": "methodtracing.png", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-04-15T03:12:05.000+0000", "size": 369267, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: Loading perf issue (~3 seconds) with XHR to fileSystem test case", "creator": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "127655", "author": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Where is the 3 second delay occurring? It's possible this can be\ncaused by network speed issues.. do you have any more data about\nhow long it takes on older versions / other devices?

{html}", "updateAuthor": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:12:06.000+0000", "updated": "2011-04-15T03:12:06.000+0000" }, { "id": "127656", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Assigning over so this get seen by Thomas.

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:12:06.000+0000", "updated": "2011-04-15T03:12:06.000+0000" }, { "id": "127657", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Sorry for the delayed response. The 3 seconds is the time from\nthe tap of the menu item (\"XHR to FileSystem\") and the resulting\nwindow showing. So, tap menu item, nothing happens for 3 seconds,\nthen web view opens and loads. No other test cases show this lag.\nThis was erroneously marked as a regression, but it repos in\n1.4.1.1, removing tag. Seems like that reduces its priority as\nwell, but I will leave up to you dev guys.

{html}", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:12:06.000+0000", "updated": "2011-04-15T03:12:06.000+0000" }, { "id": "127658", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "{html}

I'm not sure what to say or do about this item, other than to\nsuggest maybe the iOS native stuff is simply faster. The reason no\nother test shows this lag is because this one is a bit special: it\nmakes a full HTTP call and creates a file in the phone's file\nsystem before even opening the test window. Contrast that\nwith the XHR tests (Platform -> XHR), such as the XML Data test.\nThe XML Data test opens the test window before doing the\nXHR stuff, because its test window has its own URL (the Webview -\nXHR-to-Filesystem test does not run the code in a separate\nJS file -- instead, it calls tab.open(w) to put a window in the\ncurrent tab.) Therefore there is no delay in feedback to the\ntester/user in tests such as the XML Data test.

\n

If I simply change the order of a few lines in the\nXHR-to-Filesystem test, you at least get (nearly) immediate\nfeedback -- the Google page still loads more slowly than in iOS,\nbut you get feedback. Is that sufficient?

\n

I also did method tracing (attached image). Nothing really\nstands out that can be fixed to make this faster. A big chunk of\nthe time is spent in Mozilla HTTP stuff, including a surprising\namount of time spent parsing cookies.

\n

Anyway, check out the change I made, and if it's sufficient let\nme know (or close).

{html}", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-04-15T03:12:07.000+0000", "updated": "2011-04-15T03:12:07.000+0000" }, { "id": "127659", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "{html}

BTW, to me, the behavior (speed) under 1.4.1.1 seems the\nsame.

{html}", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-04-15T03:12:07.000+0000", "updated": "2011-04-15T03:12:07.000+0000" }, { "id": "127660", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "{html}

(from [bad96621cd1a44f6f206cea4d2f15f16d02d5374])\n[#2152 state:fixed-in-qa] change order of a few\nlines of WebView - XHR-to-Filesystem test in order to give quicker\nfeedback to Android users (the Android is slower than the iOS).\n\nhttps://github.com/appcelerator/titanium_mobile/commit/bad96621cd1a...

{html}", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-04-15T03:12:07.000+0000", "updated": "2011-04-15T03:12:07.000+0000" }, { "id": "127661", "author": { "name": "mschmulen", "key": "mschmulen", "displayName": "Matt Schmulen", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Not sure what to say about this... ~11 seconds on a google ION\n(from button press to page load), running 1.6 (Build number\nDRC83).

{html}", "updateAuthor": { "name": "mschmulen", "key": "mschmulen", "displayName": "Matt Schmulen", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:12:07.000+0000", "updated": "2011-04-15T03:12:07.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }