{"action":"created","issue":{"url":"https://api.github.com/repos/davethecipo/polibeepsync/issues/24","labels_url":"https://api.github.com/repos/davethecipo/polibeepsync/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/davethecipo/polibeepsync/issues/24/comments","events_url":"https://api.github.com/repos/davethecipo/polibeepsync/issues/24/events","html_url":"https://github.com/davethecipo/polibeepsync/issues/24","id":54662925,"number":24,"title":"Look into multi-threaded downloads","user":{"login":"davethecipo","id":1153288,"avatar_url":"https://avatars.githubusercontent.com/u/1153288?v=3","gravatar_id":"","url":"https://api.github.com/users/davethecipo","html_url":"https://github.com/davethecipo","followers_url":"https://api.github.com/users/davethecipo/followers","following_url":"https://api.github.com/users/davethecipo/following{/other_user}","gists_url":"https://api.github.com/users/davethecipo/gists{/gist_id}","starred_url":"https://api.github.com/users/davethecipo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davethecipo/subscriptions","organizations_url":"https://api.github.com/users/davethecipo/orgs","repos_url":"https://api.github.com/users/davethecipo/repos","events_url":"https://api.github.com/users/davethecipo/events{/privacy}","received_events_url":"https://api.github.com/users/davethecipo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-17T14:16:01Z","updated_at":"2015-06-27T14:41:12Z","closed_at":null,"body":"Ideally, each course needing to download files is added to a Queue; a number of threads (how many? I have no idea) would consume the queue.\n\nPossible pitfalls:\n\n* with long-running tasks, the session may expire. The session would probably be updated by one thread safely by using RLocks.\n* the website may be bitchy about too many connections at a time"},"comment":{"url":"https://api.github.com/repos/davethecipo/polibeepsync/issues/comments/116074926","html_url":"https://github.com/davethecipo/polibeepsync/issues/24#issuecomment-116074926","issue_url":"https://api.github.com/repos/davethecipo/polibeepsync/issues/24","id":116074926,"user":{"login":"davethecipo","id":1153288,"avatar_url":"https://avatars.githubusercontent.com/u/1153288?v=3","gravatar_id":"","url":"https://api.github.com/users/davethecipo","html_url":"https://github.com/davethecipo","followers_url":"https://api.github.com/users/davethecipo/followers","following_url":"https://api.github.com/users/davethecipo/following{/other_user}","gists_url":"https://api.github.com/users/davethecipo/gists{/gist_id}","starred_url":"https://api.github.com/users/davethecipo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davethecipo/subscriptions","organizations_url":"https://api.github.com/users/davethecipo/orgs","repos_url":"https://api.github.com/users/davethecipo/repos","events_url":"https://api.github.com/users/davethecipo/events{/privacy}","received_events_url":"https://api.github.com/users/davethecipo/received_events","type":"User","site_admin":false},"created_at":"2015-06-27T14:41:12Z","updated_at":"2015-06-27T14:41:12Z","body":"I don't think that increasing the number of threads would have any impact on performance, after all the download time should be limited by the network bandwidth.\r\n\r\nI started looking at threads because I didn't want to lock the GUI when a download is happening.\r\n\r\nMy lack of knowledge with threads is surely causing #32, therefore it would be better to completely avoid them or, if strictly necessary, introduce them in a testable manner.\r\n\r\nFurthermore, since I'd like to separate the GUI from the \"core\" processing (#8), it would be better to just ignore the GUI for a moment and think in more abstract terms.\r\n\r\n"}}