{"action":"created","issue":{"url":"https://api.github.com/repos/zulip/zulip-android/issues/29","repository_url":"https://api.github.com/repos/zulip/zulip-android","labels_url":"https://api.github.com/repos/zulip/zulip-android/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/zulip/zulip-android/issues/29/comments","events_url":"https://api.github.com/repos/zulip/zulip-android/issues/29/events","html_url":"https://github.com/zulip/zulip-android/issues/29","id":142209908,"number":29,"title":"Best Network Library suited for Android Project","user":{"login":"kunall17","id":12700799,"avatar_url":"https://avatars.githubusercontent.com/u/12700799?v=3","gravatar_id":"","url":"https://api.github.com/users/kunall17","html_url":"https://github.com/kunall17","followers_url":"https://api.github.com/users/kunall17/followers","following_url":"https://api.github.com/users/kunall17/following{/other_user}","gists_url":"https://api.github.com/users/kunall17/gists{/gist_id}","starred_url":"https://api.github.com/users/kunall17/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kunall17/subscriptions","organizations_url":"https://api.github.com/users/kunall17/orgs","repos_url":"https://api.github.com/users/kunall17/repos","events_url":"https://api.github.com/users/kunall17/events{/privacy}","received_events_url":"https://api.github.com/users/kunall17/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2016-03-20T21:46:53Z","updated_at":"2016-07-12T13:53:56Z","closed_at":"2016-07-12T13:53:56Z","body":"As I and @timabbott had a conversation for the best network library suited for the project I did some test's for 4 libraries which are HttpURLConnection, Retrofit, Volley and the current Apache Client.\r\n\r\nI did these test on a 1.5 Mbps internet connection to fetch from the server having custom headers for authorization and record the time taken in millisecond. Total size to fetch was **487 Kb** \r\n\r\nSo I conducted 5 test's with each of the libraries and got the following results- \r\n\r\n|   Name   | HTTPURLConnection | RetroFit | Apache Client | Volley |\r\n|:--------:|:-----------------:|:--------:|:-------------:|:------:|\r\n|          |                   |          |               |        |\r\n| 1st Test |        3172       |   2886   |      3255     |  3127  |\r\n| 2nd Test |        3157       |   2776   |      3275     |  3055  |\r\n| 3rd Test |        3121       |   2835   |      3292     |  3082  |\r\n| 4th Test |        3195       |   2859   |      3223     |  3145  |\r\n| 5th Test |        3175       |   2801   |      3283     |  3048  |\r\n\r\n\r\nTherefore I found the average values - \r\n\r\n|        Name       | Average Time Taken (ms) | Minimal Lines of Code |\r\n|:-----------------:|:-----------------------:|:---------------------:|\r\n| HTTPURLConnection |           3164          |           28          |\r\n|      Retrofit     |           2831          |           9           |\r\n|   Apache Client   |           3265          |           24          |\r\n|       Volley      |           3091          |           25          |\r\n\r\nI have also uploaded the [project test's](https://github.com/kunall17/zulip-network-tests) I built for these libaries\r\nNow by seeing the result we observe Retrofit is the best in these libraries in terms of speed, total code.\r\nWhat are your suggestions for replacing the current library?"},"comment":{"url":"https://api.github.com/repos/zulip/zulip-android/issues/comments/232054131","html_url":"https://github.com/zulip/zulip-android/issues/29#issuecomment-232054131","issue_url":"https://api.github.com/repos/zulip/zulip-android/issues/29","id":232054131,"user":{"login":"niftynei","id":1097769,"avatar_url":"https://avatars.githubusercontent.com/u/1097769?v=3","gravatar_id":"","url":"https://api.github.com/users/niftynei","html_url":"https://github.com/niftynei","followers_url":"https://api.github.com/users/niftynei/followers","following_url":"https://api.github.com/users/niftynei/following{/other_user}","gists_url":"https://api.github.com/users/niftynei/gists{/gist_id}","starred_url":"https://api.github.com/users/niftynei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/niftynei/subscriptions","organizations_url":"https://api.github.com/users/niftynei/orgs","repos_url":"https://api.github.com/users/niftynei/repos","events_url":"https://api.github.com/users/niftynei/events{/privacy}","received_events_url":"https://api.github.com/users/niftynei/received_events","type":"User","site_admin":false},"created_at":"2016-07-12T13:53:56Z","updated_at":"2016-07-12T13:53:56Z","body":"Converted to OKHttp with #69 . 🎉 "}}
{"actor":{"display_login":"niftynei"}}