{ "id": "63293", "key": "TIMOB-2661", "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": "11257", "description": "", "name": "Sprint-2011-09", "archived": true, "released": true, "releaseDate": "2011-03-07" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:59:44.000+0000", "created": "2011-04-15T03:26:18.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [ "android", "defect", "parse", "release-1.6.0", "responsexml", "slow", "xml" ], "versions": [], "issuelinks": [], "assignee": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:59:44.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}

an XML with 100 rows (on iphone xml parsing is very fast)

\n

on android & SDK1.2.0 only 1 second to enter the loop (and\nseeing the actInd.message = 'loading : '+x+'/'+items.length;)
\nwith SDK1.5.1 it can take up to 20 seconds.

\n
\nvar actInd = Titanium.UI.createActivityIndicator({message:'Waiting...'});\nactInd.show();\n\nvar xhr = Ti.Network.createHTTPClient();\nxhr.open(\"GET\",\"distant_XML\");\nxhr.onload = function()\n{\n    try\n    {\n        var doc = this.responseXML.documentElement;\n        var items = doc.getElementsByTagName(\"tag\");\n        var x = 0;\n        for (var c=0;c<items.length;c++)\n        {\n                actInd.message = 'loading : '+x+'/'+items.length;\n        }\n        \n        \n\n    }\n    catch(E){}\n};\n\nxhr.send();\n
{html}", "attachment": [], "flagged": false, "summary": "android : regression with responseXML from 1.2.0 to 1.5.1 - slow XML parsing", "creator": { "name": "stephane", "key": "stephane", "displayName": "Stephane", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "stephane", "key": "stephane", "displayName": "Stephane", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "129127", "author": { "name": "stephane", "key": "stephane", "displayName": "Stephane", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

this has been fixed in 1.6.0 - parsing is ultra-fast now

\n

thanks

\n

this issue can be marked as solved

{html}", "updateAuthor": { "name": "stephane", "key": "stephane", "displayName": "Stephane", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:26:19.000+0000", "updated": "2011-04-15T03:26:19.000+0000" }, { "id": "129128", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Marking resolved as requested.

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:26:19.000+0000", "updated": "2011-04-15T03:26:19.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }