{"action":"opened","issue":{"url":"https://api.github.com/repos/libfuse/libfuse/issues/2","labels_url":"https://api.github.com/repos/libfuse/libfuse/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/libfuse/libfuse/issues/2/comments","events_url":"https://api.github.com/repos/libfuse/libfuse/issues/2/events","html_url":"https://github.com/libfuse/libfuse/issues/2","id":123801193,"number":2,"title":"Configurable thread pool for high level API","user":{"login":"trapexit","id":197676,"avatar_url":"https://avatars.githubusercontent.com/u/197676?v=3","gravatar_id":"","url":"https://api.github.com/users/trapexit","html_url":"https://github.com/trapexit","followers_url":"https://api.github.com/users/trapexit/followers","following_url":"https://api.github.com/users/trapexit/following{/other_user}","gists_url":"https://api.github.com/users/trapexit/gists{/gist_id}","starred_url":"https://api.github.com/users/trapexit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trapexit/subscriptions","organizations_url":"https://api.github.com/users/trapexit/orgs","repos_url":"https://api.github.com/users/trapexit/repos","events_url":"https://api.github.com/users/trapexit/events{/privacy}","received_events_url":"https://api.github.com/users/trapexit/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-24T13:00:09Z","updated_at":"2015-12-24T13:00:09Z","closed_at":null,"body":"Currently the thread pool for the high level API will grow as needed but threads will self destruct if after their handling of a request there is greater than [10 threads](https://github.com/libfuse/libfuse/blob/master/lib/fuse_loop_mt.c#L120). The overhead of doing so is probably much greater than the request handled and limits throughput.\r\n\r\nThe max number of threads should be configurable and maybe a smarter algo used which perhaps cleans up threads if unused for a time rather than checking every request."}}