{"action":"closed","issue":{"url":"https://api.github.com/repos/kxlt/imageresizer/issues/15","repository_url":"https://api.github.com/repos/kxlt/imageresizer","labels_url":"https://api.github.com/repos/kxlt/imageresizer/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/kxlt/imageresizer/issues/15/comments","events_url":"https://api.github.com/repos/kxlt/imageresizer/issues/15/events","html_url":"https://github.com/kxlt/imageresizer/issues/15","id":374674639,"node_id":"MDU6SXNzdWUzNzQ2NzQ2Mzk=","number":15,"title":"libvips resize operations should use a thread pool","user":{"login":"kxlt","id":1402931,"node_id":"MDQ6VXNlcjE0MDI5MzE=","avatar_url":"https://avatars1.githubusercontent.com/u/1402931?v=4","gravatar_id":"","url":"https://api.github.com/users/kxlt","html_url":"https://github.com/kxlt","followers_url":"https://api.github.com/users/kxlt/followers","following_url":"https://api.github.com/users/kxlt/following{/other_user}","gists_url":"https://api.github.com/users/kxlt/gists{/gist_id}","starred_url":"https://api.github.com/users/kxlt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kxlt/subscriptions","organizations_url":"https://api.github.com/users/kxlt/orgs","repos_url":"https://api.github.com/users/kxlt/repos","events_url":"https://api.github.com/users/kxlt/events{/privacy}","received_events_url":"https://api.github.com/users/kxlt/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"kxlt","id":1402931,"node_id":"MDQ6VXNlcjE0MDI5MzE=","avatar_url":"https://avatars1.githubusercontent.com/u/1402931?v=4","gravatar_id":"","url":"https://api.github.com/users/kxlt","html_url":"https://github.com/kxlt","followers_url":"https://api.github.com/users/kxlt/followers","following_url":"https://api.github.com/users/kxlt/following{/other_user}","gists_url":"https://api.github.com/users/kxlt/gists{/gist_id}","starred_url":"https://api.github.com/users/kxlt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kxlt/subscriptions","organizations_url":"https://api.github.com/users/kxlt/orgs","repos_url":"https://api.github.com/users/kxlt/repos","events_url":"https://api.github.com/users/kxlt/events{/privacy}","received_events_url":"https://api.github.com/users/kxlt/received_events","type":"User","site_admin":false},"assignees":[{"login":"kxlt","id":1402931,"node_id":"MDQ6VXNlcjE0MDI5MzE=","avatar_url":"https://avatars1.githubusercontent.com/u/1402931?v=4","gravatar_id":"","url":"https://api.github.com/users/kxlt","html_url":"https://github.com/kxlt","followers_url":"https://api.github.com/users/kxlt/followers","following_url":"https://api.github.com/users/kxlt/following{/other_user}","gists_url":"https://api.github.com/users/kxlt/gists{/gist_id}","starred_url":"https://api.github.com/users/kxlt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kxlt/subscriptions","organizations_url":"https://api.github.com/users/kxlt/orgs","repos_url":"https://api.github.com/users/kxlt/repos","events_url":"https://api.github.com/users/kxlt/events{/privacy}","received_events_url":"https://api.github.com/users/kxlt/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-10-27T18:29:58Z","updated_at":"2018-10-28T14:33:18Z","closed_at":"2018-10-28T14:33:18Z","author_association":"OWNER","body":"Currently each request that requests a thumbnail creates a `libvips` thread to do the resizing. Goroutines are cheap but C threads not so much. We should use a thread pool of libvips threads to handle resize operations.\r\n\r\nSome ideas:\r\n- Queue resize operations within a buffered channel, then have a pool of goroutines listen on the channel.\r\n- Resize results should be sent back with another channel."}}
{"actor":{"display_login":"kxlt"}}