vincent.brule
08/14/2018, 12:50 PMorangy
String
out of it, so it’s kinda expected.vincent.brule
08/14/2018, 12:57 PMvincent.brule
08/14/2018, 12:58 PMorangy
vincent.brule
08/14/2018, 2:29 PMorangy
curl
to query the same endpoint?vincent.brule
08/14/2018, 2:48 PMorangy
orangy
vincent.brule
08/14/2018, 3:27 PMorangy
response.readText()
takes 2-3 secs?
2. The rest of the time 4-5 minus 2-3 = 2-3 secs are consumed by gson
deserializing?
3. postman
to the same URL takes 2 secs?
Are statements above true?vincent.brule
08/14/2018, 3:34 PMvincent.brule
08/14/2018, 3:34 PMvincent.brule
08/14/2018, 3:35 PMvincent.brule
08/14/2018, 3:35 PMvincent.brule
08/14/2018, 3:48 PMvincent.brule
08/14/2018, 3:49 PMorangy
readText
takes same time as postman
, so it’s just fetching the data from remote server that takes this time, no?vincent.brule
08/14/2018, 4:23 PMorangy
postman
and readText
both do this work and from your statements it sounds like they both use the same amount of time. I don’t understand what can you optimize there.vincent.brule
08/14/2018, 4:34 PMorangy
Between 4 ~ 5 sec to readText and deserialize
Just to read the text with response.readText() take 2~3secYou said this previously, and
postman
doesn’t deserialize anything. So I don’t understand changes in numbers (2-3, 5-6, 6-7) and what other API are you looking for.vincent.brule
08/14/2018, 4:46 PMcy
08/14/2018, 4:50 PMclient.get<ByteArray>(...
to receive response body as arraye5l
08/15/2018, 8:34 AMreadText
and in worst case works around 63.205ms
on 32Mb
Unicode text.vincent.brule
08/16/2018, 7:05 AMvincent.brule
08/16/2018, 9:04 AMe5l
08/16/2018, 9:04 AMvincent.brule
08/16/2018, 9:13 AMvincent.brule
08/16/2018, 9:13 AMvincent.brule
08/16/2018, 9:14 AMe5l
08/16/2018, 9:15 AMgetAllEmployees
?e5l
08/16/2018, 9:17 AMreadResponse()
method?vincent.brule
08/16/2018, 9:24 AMvincent.brule
08/16/2018, 9:24 AMvincent.brule
08/16/2018, 9:24 AMe5l
08/16/2018, 9:26 AMvincent.brule
08/16/2018, 9:56 AMvincent.brule
08/16/2018, 10:03 AMvincent.brule
08/16/2018, 10:06 AMe5l
08/16/2018, 10:08 AMget<HttpResponse>()
method doesn’t receive the body. But readText()
and get<ByteArray>
receive.vincent.brule
08/16/2018, 10:09 AMvincent.brule
08/16/2018, 10:09 AMe5l
08/16/2018, 10:10 AM63ms
without networkvincent.brule
08/16/2018, 10:11 AMvincent.brule
08/16/2018, 10:15 AMvincent.brule
08/16/2018, 10:16 AMe5l
08/16/2018, 10:33 AMvincent.brule
08/16/2018, 10:36 AMvincent.brule
08/16/2018, 10:43 AMe5l
08/16/2018, 10:44 AMvincent.brule
08/16/2018, 10:55 AMe5l
08/16/2018, 11:41 AMvincent.brule
08/16/2018, 11:47 AM