{"action":"opened","issue":{"url":"https://api.github.com/repos/threadly/threadly/issues/152","labels_url":"https://api.github.com/repos/threadly/threadly/issues/152/labels{/name}","comments_url":"https://api.github.com/repos/threadly/threadly/issues/152/comments","events_url":"https://api.github.com/repos/threadly/threadly/issues/152/events","html_url":"https://github.com/threadly/threadly/issues/152","id":91615440,"number":152,"title":"Look at possible efficency improvements by forcing cpu affinity","user":{"login":"jentfoo","id":2165757,"avatar_url":"https://avatars.githubusercontent.com/u/2165757?v=3","gravatar_id":"","url":"https://api.github.com/users/jentfoo","html_url":"https://github.com/jentfoo","followers_url":"https://api.github.com/users/jentfoo/followers","following_url":"https://api.github.com/users/jentfoo/following{/other_user}","gists_url":"https://api.github.com/users/jentfoo/gists{/gist_id}","starred_url":"https://api.github.com/users/jentfoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jentfoo/subscriptions","organizations_url":"https://api.github.com/users/jentfoo/orgs","repos_url":"https://api.github.com/users/jentfoo/repos","events_url":"https://api.github.com/users/jentfoo/events{/privacy}","received_events_url":"https://api.github.com/users/jentfoo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/threadly/threadly/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-28T16:50:34Z","updated_at":"2015-06-28T16:50:34Z","closed_at":null,"body":"This came from a discussion on reddit.  The idea would be if we can group similar tasks on to the same CPU core, we will more likely have better cache hit rates.  It seems for things like the KeyDistributedExceutor this could be very valuable.  But even in the PriorityScheduler maybe we could look at runnable class to pick which core it should run on.  Of course we would have to ensure we don't force too much on a core, and end up becoming single threaded (since all the work submitted is of the same type).\r\n\r\nWe would need some sort of JNI sadly to force the cpu core.\r\n\r\nI am not sure how this would look exactly, or what costs we will end up having to do this logic, or how large the benefits will be.  So this may not be a good idea at all, but I do figure its at least worth attempting to find out."}}