{ "id": "172997", "key": "AC-6138", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2019-03-01T21:35:01.000+0000", "created": "2019-02-14T08:53:18.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2019-03-01T21:35:01.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "We are experiencing slow performance making basic HTTP calls through Appcelerator. This seems to affect both Android and iOS builds, however iOS does seem to be slower overall.\r\n\r\nThe requests are essentially basic HTTP POST calls and all go via the same function code below:\r\n\r\n{code:js}\r\nthis.sendToServer = function(params, httpParams) {\r\n\tif (Alloy.Globals.NETWORK_ENABLED) {\r\n\t\tvar xhr = Ti.Network.createHTTPClient(params);\r\n\t\txhr.validatesSecureCertificate = false;\r\n\t\txhr.open('POST', this.url, true);\r\n\t\txhr.send(httpParams);\r\n\t} else {\r\n\t\tparams.onload();\r\n\t}\r\n};\r\n{code}\r\n\r\nThe same calls made via our web and desktop versions of the application are performing significantly better. We recently upgraded to Titanium SDK 7.4.2 & Appcelerator CLI 7.0.9.\r\n\r\nUnless there are any modifications to our code you can suggest, there seems to be a bug in the performance of the underlying requests perhaps introduced in a recent Titanium SDK change.", "attachment": [], "flagged": false, "summary": "HTTP Request Performance", "creator": { "name": "ssims", "key": "ssims", "displayName": "Stewart Sims", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ssims", "key": "ssims", "displayName": "Stewart Sims", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "446193", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello [~ssims], Please provide a standalone sample code for reproducing the issue on our end. Please provide the full steps to follow for successful regeneration. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2019-02-20T17:13:42.000+0000", "updated": "2019-02-20T17:13:42.000+0000" }, { "id": "446275", "author": { "name": "ssims", "key": "ssims", "displayName": "Stewart Sims", "active": true, "timeZone": "America/Los_Angeles" }, "body": "OK I will try to provide a sample within 1 week, please do not close this issue until I have had chance to upload the code. Thanks.", "updateAuthor": { "name": "ssims", "key": "ssims", "displayName": "Stewart Sims", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-02-25T14:52:43.000+0000", "updated": "2019-02-25T14:52:43.000+0000" }, { "id": "446392", "author": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~ssims],\r\nOK. We will be waiting for that.", "updateAuthor": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2019-02-28T09:08:29.000+0000", "updated": "2019-02-28T09:08:29.000+0000" }, { "id": "446439", "author": { "name": "ssims", "key": "ssims", "displayName": "Stewart Sims", "active": true, "timeZone": "America/Los_Angeles" }, "body": "OK I can confirm there must be some issue in the code of our mobile app only. A basic project reproducing the same HTTP requests does not have the same performance issues. I think this has to do with a complex operation involving the merging of two arrays after the request is completed. Feel free to close this issue, hopefully this has not wasted your time, and thank you for keeping an open mind and leaving this ticket open until now.", "updateAuthor": { "name": "ssims", "key": "ssims", "displayName": "Stewart Sims", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-03-01T12:50:42.000+0000", "updated": "2019-03-01T12:50:42.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }