{"action":"created","issue":{"url":"https://api.github.com/repos/rodjek/puppet-lint/issues/236","repository_url":"https://api.github.com/repos/rodjek/puppet-lint","labels_url":"https://api.github.com/repos/rodjek/puppet-lint/issues/236/labels{/name}","comments_url":"https://api.github.com/repos/rodjek/puppet-lint/issues/236/comments","events_url":"https://api.github.com/repos/rodjek/puppet-lint/issues/236/events","html_url":"https://github.com/rodjek/puppet-lint/issues/236","id":24459148,"number":236,"title":"Making it faster with threads ?","user":{"login":"grosser","id":11367,"avatar_url":"https://avatars.githubusercontent.com/u/11367?v=3","gravatar_id":"","url":"https://api.github.com/users/grosser","html_url":"https://github.com/grosser","followers_url":"https://api.github.com/users/grosser/followers","following_url":"https://api.github.com/users/grosser/following{/other_user}","gists_url":"https://api.github.com/users/grosser/gists{/gist_id}","starred_url":"https://api.github.com/users/grosser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grosser/subscriptions","organizations_url":"https://api.github.com/users/grosser/orgs","repos_url":"https://api.github.com/users/grosser/repos","events_url":"https://api.github.com/users/grosser/events{/privacy}","received_events_url":"https://api.github.com/users/grosser/received_events","type":"User","site_admin":false},"labels":[{"id":140613,"url":"https://api.github.com/repos/rodjek/puppet-lint/labels/feature","name":"feature","color":"02e10c","default":false},{"id":489420376,"url":"https://api.github.com/repos/rodjek/puppet-lint/labels/intermediate-advanced","name":"intermediate-advanced","color":"e6e6e6","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2013-12-17T23:30:38Z","updated_at":"2016-12-20T22:41:28Z","closed_at":null,"body":"how about instead of doing `path.each do |f|` do `in_multiple_threads path, 10 do |f|`,\nthe \"xxx.pp Syntax OK\" could no longer have the progress indication, but would have to print as one line.\n\n```\ndef in_multiple_threads(data, count)\n      data = data.to_a.dup\n      threads = [count || 1, data.size].min\n      results = []\n      (0...threads).to_a.map do\n        Thread.new do\n          while slice = data.shift\n            results << yield(slice)\n          end\n        end\n      end.each(&:join)\n      results\n    end\n```\n"},"comment":{"url":"https://api.github.com/repos/rodjek/puppet-lint/issues/comments/268380334","html_url":"https://github.com/rodjek/puppet-lint/issues/236#issuecomment-268380334","issue_url":"https://api.github.com/repos/rodjek/puppet-lint/issues/236","id":268380334,"user":{"login":"grosser","id":11367,"avatar_url":"https://avatars.githubusercontent.com/u/11367?v=3","gravatar_id":"","url":"https://api.github.com/users/grosser","html_url":"https://github.com/grosser","followers_url":"https://api.github.com/users/grosser/followers","following_url":"https://api.github.com/users/grosser/following{/other_user}","gists_url":"https://api.github.com/users/grosser/gists{/gist_id}","starred_url":"https://api.github.com/users/grosser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grosser/subscriptions","organizations_url":"https://api.github.com/users/grosser/orgs","repos_url":"https://api.github.com/users/grosser/repos","events_url":"https://api.github.com/users/grosser/events{/privacy}","received_events_url":"https://api.github.com/users/grosser/received_events","type":"User","site_admin":false},"created_at":"2016-12-20T22:41:28Z","updated_at":"2016-12-20T22:41:28Z","body":"nah sry, not working with any puppet things anymore :)\n... can close it since nobody else ever wanted that ...\nstill think it would be a nice feature though ... maybe shitty at first but\nwith a --parallel opt-in ...\n\n\nOn Tue, Dec 20, 2016 at 2:37 PM, Rob Nelson <notifications@github.com>\nwrote:\n\n> @grosser <https://github.com/grosser> Heh, sorry for the very large\n> delay. We ARE working hard at staying more on top of things now, so hope we\n> can clear out a large number of the 60+ remaining issues and PRs so we can\n> spend some time on features like this. With that in mind, maybe early 2018?\n> :)\n>\n> —\n> You are receiving this because you were mentioned.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/rodjek/puppet-lint/issues/236#issuecomment-268379542>,\n> or mute the thread\n> <https://github.com/notifications/unsubscribe-auth/AAAsZ4L8kGkAiTNN7CTANVJvBEBkELb7ks5rKFiegaJpZM4BU4zp>\n> .\n>\n"}}
{"actor":{"display_login":"grosser"}}