{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/fb.resnet.torch/issues/65","repository_url":"https://api.github.com/repos/facebook/fb.resnet.torch","labels_url":"https://api.github.com/repos/facebook/fb.resnet.torch/issues/65/labels{/name}","comments_url":"https://api.github.com/repos/facebook/fb.resnet.torch/issues/65/comments","events_url":"https://api.github.com/repos/facebook/fb.resnet.torch/issues/65/events","html_url":"https://github.com/facebook/fb.resnet.torch/issues/65","id":161759549,"number":65,"title":"Two enqueue in loop","user":{"login":"lichengunc","id":12834517,"avatar_url":"https://avatars.githubusercontent.com/u/12834517?v=3","gravatar_id":"","url":"https://api.github.com/users/lichengunc","html_url":"https://github.com/lichengunc","followers_url":"https://api.github.com/users/lichengunc/followers","following_url":"https://api.github.com/users/lichengunc/following{/other_user}","gists_url":"https://api.github.com/users/lichengunc/gists{/gist_id}","starred_url":"https://api.github.com/users/lichengunc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lichengunc/subscriptions","organizations_url":"https://api.github.com/users/lichengunc/orgs","repos_url":"https://api.github.com/users/lichengunc/repos","events_url":"https://api.github.com/users/lichengunc/events{/privacy}","received_events_url":"https://api.github.com/users/lichengunc/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-06-22T18:57:22Z","updated_at":"2016-06-22T21:42:04Z","closed_at":"2016-06-22T20:40:27Z","body":"I was wondering why there two \"enqueue\" in the \"loop\"? \r\nI tested it without the second one, seems still working and speed not slowing down.\r\n![screen shot 2016-06-22 at 11 54 02 am](https://cloud.githubusercontent.com/assets/12834517/16279588/78754db6-3870-11e6-833c-9971beb36088.png)\r\n"},"comment":{"url":"https://api.github.com/repos/facebook/fb.resnet.torch/issues/comments/227885802","html_url":"https://github.com/facebook/fb.resnet.torch/issues/65#issuecomment-227885802","issue_url":"https://api.github.com/repos/facebook/fb.resnet.torch/issues/65","id":227885802,"user":{"login":"colesbury","id":655866,"avatar_url":"https://avatars.githubusercontent.com/u/655866?v=3","gravatar_id":"","url":"https://api.github.com/users/colesbury","html_url":"https://github.com/colesbury","followers_url":"https://api.github.com/users/colesbury/followers","following_url":"https://api.github.com/users/colesbury/following{/other_user}","gists_url":"https://api.github.com/users/colesbury/gists{/gist_id}","starred_url":"https://api.github.com/users/colesbury/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/colesbury/subscriptions","organizations_url":"https://api.github.com/users/colesbury/orgs","repos_url":"https://api.github.com/users/colesbury/repos","events_url":"https://api.github.com/users/colesbury/events{/privacy}","received_events_url":"https://api.github.com/users/colesbury/received_events","type":"User","site_admin":false},"created_at":"2016-06-22T21:42:04Z","updated_at":"2016-06-22T21:42:04Z","body":"I don't understand your question. The `loop()` code is run sequentially in the main thread. If you run with enough data loading threads, then `dojob()` won't have to wait, which is why you didn't see a slowdown if you remove the second `enqueue()`"}}
{"actor":{"display_login":"colesbury"}}