{"action":"created","issue":{"url":"https://api.github.com/repos/weierophinney/zend-eventmanager/issues/4","labels_url":"https://api.github.com/repos/weierophinney/zend-eventmanager/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/weierophinney/zend-eventmanager/issues/4/comments","events_url":"https://api.github.com/repos/weierophinney/zend-eventmanager/issues/4/events","html_url":"https://github.com/weierophinney/zend-eventmanager/pull/4","id":108412430,"number":4,"title":"[WIP] Start optimizations","user":{"login":"bakura10","id":1198915,"avatar_url":"https://avatars.githubusercontent.com/u/1198915?v=3","gravatar_id":"","url":"https://api.github.com/users/bakura10","html_url":"https://github.com/bakura10","followers_url":"https://api.github.com/users/bakura10/followers","following_url":"https://api.github.com/users/bakura10/following{/other_user}","gists_url":"https://api.github.com/users/bakura10/gists{/gist_id}","starred_url":"https://api.github.com/users/bakura10/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bakura10/subscriptions","organizations_url":"https://api.github.com/users/bakura10/orgs","repos_url":"https://api.github.com/users/bakura10/repos","events_url":"https://api.github.com/users/bakura10/events{/privacy}","received_events_url":"https://api.github.com/users/bakura10/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-09-25T21:40:28Z","updated_at":"2015-09-27T13:56:34Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/weierophinney/zend-eventmanager/pulls/4","html_url":"https://github.com/weierophinney/zend-eventmanager/pull/4","diff_url":"https://github.com/weierophinney/zend-eventmanager/pull/4.diff","patch_url":"https://github.com/weierophinney/zend-eventmanager/pull/4.patch"},"body":"Hey,\r\n\r\nI've started working on optimizations. I've tried to run the SingleEventMultipleListener benchmark.\r\n\r\nYour branch:\r\n\r\n    ZendBench\\EventManager\\SingleEventMultipleListener\r\n    Method Name   Iterations    Average Time      Ops/second\r\n    -------  ------------  --------------    -------------\r\n    trigger: [5,000     ] [0.0000377817631] [26,467.79606]\r\n\r\nAfter those optimizations:\r\n\r\n    ZendBench\\EventManager\\SingleEventMultipleListener\r\n    Method Name   Iterations    Average Time      Ops/second\r\n    -------  ------------  --------------    -------------\r\n    trigger: [5,000     ] [0.0000137614727] [72,666.64126]\r\n\r\n\r\nI'll continue to work on that, merging SEM does not work yet, but as you can see, the idea is to NOT use any wrapper around array like FastPriorityQueue, and use properties of PHP arrays, which achieve MUCH better performance."},"comment":{"url":"https://api.github.com/repos/weierophinney/zend-eventmanager/issues/comments/143559870","html_url":"https://github.com/weierophinney/zend-eventmanager/pull/4#issuecomment-143559870","issue_url":"https://api.github.com/repos/weierophinney/zend-eventmanager/issues/4","id":143559870,"user":{"login":"bakura10","id":1198915,"avatar_url":"https://avatars.githubusercontent.com/u/1198915?v=3","gravatar_id":"","url":"https://api.github.com/users/bakura10","html_url":"https://github.com/bakura10","followers_url":"https://api.github.com/users/bakura10/followers","following_url":"https://api.github.com/users/bakura10/following{/other_user}","gists_url":"https://api.github.com/users/bakura10/gists{/gist_id}","starred_url":"https://api.github.com/users/bakura10/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bakura10/subscriptions","organizations_url":"https://api.github.com/users/bakura10/orgs","repos_url":"https://api.github.com/users/bakura10/repos","events_url":"https://api.github.com/users/bakura10/events{/privacy}","received_events_url":"https://api.github.com/users/bakura10/received_events","type":"User","site_admin":false},"created_at":"2015-09-27T13:56:34Z","updated_at":"2015-09-27T13:56:34Z","body":"That's already the case @weierophinney "}}