{"action":"created","issue":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/3982","repository_url":"https://api.github.com/repos/mapbox/mapbox-gl-native","labels_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/3982/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/3982/comments","events_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/3982/events","html_url":"https://github.com/mapbox/mapbox-gl-native/issues/3982","id":134152276,"number":3982,"title":"worker usage should be customizable","user":{"login":"jfirebaugh","id":98601,"avatar_url":"https://avatars.githubusercontent.com/u/98601?v=3","gravatar_id":"","url":"https://api.github.com/users/jfirebaugh","html_url":"https://github.com/jfirebaugh","followers_url":"https://api.github.com/users/jfirebaugh/followers","following_url":"https://api.github.com/users/jfirebaugh/following{/other_user}","gists_url":"https://api.github.com/users/jfirebaugh/gists{/gist_id}","starred_url":"https://api.github.com/users/jfirebaugh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfirebaugh/subscriptions","organizations_url":"https://api.github.com/users/jfirebaugh/orgs","repos_url":"https://api.github.com/users/jfirebaugh/repos","events_url":"https://api.github.com/users/jfirebaugh/events{/privacy}","received_events_url":"https://api.github.com/users/jfirebaugh/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/labels/node","name":"node","color":"009800"},{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/labels/refactor","name":"refactor","color":"4c4c4c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-17T01:50:18Z","updated_at":"2016-02-17T13:44:11Z","closed_at":null,"body":"For node, we don't want to spawn four threads for each Map instance. Instead, the node thread pool should be used.\r\n\r\nWorker needs to be more like FileSource -- an abstract interface that can be replaced with different implementations depending on the platform."},"comment":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/comments/185209264","html_url":"https://github.com/mapbox/mapbox-gl-native/issues/3982#issuecomment-185209264","issue_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/3982","id":185209264,"user":{"login":"tmpsantos","id":996307,"avatar_url":"https://avatars.githubusercontent.com/u/996307?v=3","gravatar_id":"","url":"https://api.github.com/users/tmpsantos","html_url":"https://github.com/tmpsantos","followers_url":"https://api.github.com/users/tmpsantos/followers","following_url":"https://api.github.com/users/tmpsantos/following{/other_user}","gists_url":"https://api.github.com/users/tmpsantos/gists{/gist_id}","starred_url":"https://api.github.com/users/tmpsantos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmpsantos/subscriptions","organizations_url":"https://api.github.com/users/tmpsantos/orgs","repos_url":"https://api.github.com/users/tmpsantos/repos","events_url":"https://api.github.com/users/tmpsantos/events{/privacy}","received_events_url":"https://api.github.com/users/tmpsantos/received_events","type":"User","site_admin":false},"created_at":"2016-02-17T13:44:11Z","updated_at":"2016-02-17T13:44:11Z","body":"Wouldn't make `mbgl::Worker` thread-safe (it is almost already) and share it across all the map objects a more maintainable option?"}}