Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-5927] Android: HttpClient calls too slow

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionCannot Reproduce
Resolution Date2012-12-04T23:58:15.000+0000
Affected Version/sRelease 1.7.2, Release 1.7.3, Release 1.8.0
Fix Version/s2012 Sprint 25, 2012 Sprint 25 Core
ComponentsAndroid
Labelscore, insight
ReporterEduardo Gomez
AssigneeIngo Muschenetz
Created2011-10-31T09:05:58.000+0000
Updated2017-03-29T20:21:40.000+0000

Description

Problem

HTTPs calls are too slow on android on small file (regardless GZIP use) The response time is up to 24 secs meanwhile iOS is 1 sec.

Testing File is attached

testJson.jsp

Tested on

LG Ally android 2.2 & iOS 4.3

Associated HD ticket

APP-435854

Attachments

FileDateSize
testJson.jsp2011-10-31T09:05:58.000+00004918

Comments

  1. Hieu Pham 2011-10-31

    I've tested with your snippet and am able to reproduce it I'm getting the following results: File on their server: On Mac: ~1000ms (very small file, gzip makes little difference.) On DroidX (wifi) ~11000ms I also tested by putting URL to my phone's browser, and it takes roughly the same amount of time to process. It would seem that the handshaking is most time-intensive when connecting to ssl server.
  2. process 2012-06-18

    same on Titanium mobile sdk 1.8.2
  3. process 2012-06-18

    ... and android 3.1
  4. Allen Yeung 2012-12-04

    I've tried this on both Android and iOS emulators. Using shak's test case, the first request without GZIP always takes a little longer (up to 1300ms for android and 850ms for iOS). However, all subsequent request take around 300ms on both platforms. When trying to GZIP, the request takes ~200ms on android and ~300ms on iOS. The difference isn't a 24x difference as mentioned in the bug. Going to mark this as cannot reproduce until we get a better test case.
  5. Lee Morris 2017-03-29

    Closing ticket as "Cannot Reproduce" with reference to the above comments.

JSON Source