{"action":"created","issue":{"url":"https://api.github.com/repos/BennyHallett/obelisk/issues/7","labels_url":"https://api.github.com/repos/BennyHallett/obelisk/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/BennyHallett/obelisk/issues/7/comments","events_url":"https://api.github.com/repos/BennyHallett/obelisk/issues/7/events","html_url":"https://github.com/BennyHallett/obelisk/issues/7","id":45299750,"number":7,"title":"v1.0.0 Performance Goal: Build 10000 documents in around 10 seconds","user":{"login":"BennyHallett","id":1532218,"avatar_url":"https://avatars.githubusercontent.com/u/1532218?v=3","gravatar_id":"","url":"https://api.github.com/users/BennyHallett","html_url":"https://github.com/BennyHallett","followers_url":"https://api.github.com/users/BennyHallett/followers","following_url":"https://api.github.com/users/BennyHallett/following{/other_user}","gists_url":"https://api.github.com/users/BennyHallett/gists{/gist_id}","starred_url":"https://api.github.com/users/BennyHallett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BennyHallett/subscriptions","organizations_url":"https://api.github.com/users/BennyHallett/orgs","repos_url":"https://api.github.com/users/BennyHallett/repos","events_url":"https://api.github.com/users/BennyHallett/events{/privacy}","received_events_url":"https://api.github.com/users/BennyHallett/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/BennyHallett/obelisk/milestones/1","html_url":"https://github.com/BennyHallett/obelisk/milestones/1.0.0","labels_url":"https://api.github.com/repos/BennyHallett/obelisk/milestones/1/labels","id":1048236,"number":1,"title":"1.0.0","description":"","creator":{"login":"BennyHallett","id":1532218,"avatar_url":"https://avatars.githubusercontent.com/u/1532218?v=3","gravatar_id":"","url":"https://api.github.com/users/BennyHallett","html_url":"https://github.com/BennyHallett","followers_url":"https://api.github.com/users/BennyHallett/followers","following_url":"https://api.github.com/users/BennyHallett/following{/other_user}","gists_url":"https://api.github.com/users/BennyHallett/gists{/gist_id}","starred_url":"https://api.github.com/users/BennyHallett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BennyHallett/subscriptions","organizations_url":"https://api.github.com/users/BennyHallett/orgs","repos_url":"https://api.github.com/users/BennyHallett/repos","events_url":"https://api.github.com/users/BennyHallett/events{/privacy}","received_events_url":"https://api.github.com/users/BennyHallett/received_events","type":"User","site_admin":false},"open_issues":9,"closed_issues":1,"state":"open","created_at":"2015-04-01T07:08:53Z","updated_at":"2015-04-07T21:42:50Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2014-10-08T21:30:54Z","updated_at":"2015-07-19T22:51:40Z","closed_at":null,"body":"10 seconds is totally arbitrary, but I'd like to set some lofty performance goals.\r\n\r\nThere's a mix task to run this test:\r\n\r\n    $ mix perf"},"comment":{"url":"https://api.github.com/repos/BennyHallett/obelisk/issues/comments/122712567","html_url":"https://github.com/BennyHallett/obelisk/issues/7#issuecomment-122712567","issue_url":"https://api.github.com/repos/BennyHallett/obelisk/issues/7","id":122712567,"user":{"login":"liveforeverx","id":660306,"avatar_url":"https://avatars.githubusercontent.com/u/660306?v=3","gravatar_id":"","url":"https://api.github.com/users/liveforeverx","html_url":"https://github.com/liveforeverx","followers_url":"https://api.github.com/users/liveforeverx/followers","following_url":"https://api.github.com/users/liveforeverx/following{/other_user}","gists_url":"https://api.github.com/users/liveforeverx/gists{/gist_id}","starred_url":"https://api.github.com/users/liveforeverx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liveforeverx/subscriptions","organizations_url":"https://api.github.com/users/liveforeverx/orgs","repos_url":"https://api.github.com/users/liveforeverx/repos","events_url":"https://api.github.com/users/liveforeverx/events{/privacy}","received_events_url":"https://api.github.com/users/liveforeverx/received_events","type":"User","site_admin":false},"created_at":"2015-07-19T22:51:40Z","updated_at":"2015-07-19T22:51:40Z","body":"I've used sbroker as pooling library for my experiments, that is my implementation now:\r\n\r\nhttps://gist.github.com/liveforeverx/0e3146d8e8921b9916be\r\n\r\nIn my code, I use it simple as:\r\n\r\n```elixir\r\nPool.set_state(pool, ....all arguments at once)\r\nEnum.each(files, &Pool.run(pool, __MODULE__, :render, [&1]))\r\nPool.sync_all(pool)\r\n```\r\n\r\nAnd, after that, I've gotten little bit less as 100% CPU, but better speed: \r\n\r\n```\r\nlime mix perf\r\ncopy assets: 106 ms\r\ncompile layouts: 306 ms\r\ncompile posts: 56517 ms\r\n```"}}