{ "id": "112298", "key": "ALOY-610", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false }, "project": { "id": "11113", "key": "ALOY", "name": "Alloy", "projectCategory": { "id": "10400", "description": "Tools for developing applications", "name": "Tooling" } }, "fixVersions": [], "resolution": { "id": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2014-01-20T21:57:01.000+0000", "created": "2013-04-06T00:19:27.000+0000", "priority": null, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-02-28T23:57: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": [], "description": "The concept of markup files CAN be good, but I feel that writing markup files just to convert them at compile to JS might make development faster or easier, but does not really provide extra perks. Loading the XML natively would provide load time speed improvements well beyond anything that can be done via JS as it eliminates the bridge.\r\n\r\nHere is what I am proposing in JS (Alloy markup should be known by all here, so no need to explain it):\r\n\r\n{code}\r\n// Returns the root view\r\nvar window = Ti.UI.load('/ui/index.xml');\r\n\r\n// get a child view by ID\r\nwindow.find('subview');\r\n{code}\r\n\r\n ", "attachment": [], "flagged": false, "summary": "TiAPI: Read Alloy markup files natively ", "creator": { "name": "mattapperson", "key": "mattapperson", "displayName": "me@gmail.com", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "288889", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I don't see how this solution provides any performance enhancement. It appears to me to push compile time effort into the runtime, which would in effect make the app slower. What exactly is going on in the proposed {{Ti.UI.load()}} function that would actually make this faster? {{window.find()}} by its very nature would be slower than simply referencing elements directly by id, and if that's what it's doing under the hood, I don't see why we would create a new API to do what Alloy does already.\r\n\r\nI'm going to close this one for now, but I'll re-open if some of the above points can be made to show a clear and distinct advantage over the current Alloy setup.", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-20T21:57:01.000+0000", "updated": "2014-01-20T21:57:01.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }