{"action":"opened","issue":{"url":"https://api.github.com/repos/oanda/v20-python/issues/5","repository_url":"https://api.github.com/repos/oanda/v20-python","labels_url":"https://api.github.com/repos/oanda/v20-python/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/oanda/v20-python/issues/5/comments","events_url":"https://api.github.com/repos/oanda/v20-python/issues/5/events","html_url":"https://github.com/oanda/v20-python/issues/5","id":186870004,"number":5,"title":"Streaming pricing performance","user":{"login":"alekna","id":10272121,"avatar_url":"https://avatars.githubusercontent.com/u/10272121?v=3","gravatar_id":"","url":"https://api.github.com/users/alekna","html_url":"https://github.com/alekna","followers_url":"https://api.github.com/users/alekna/followers","following_url":"https://api.github.com/users/alekna/following{/other_user}","gists_url":"https://api.github.com/users/alekna/gists{/gist_id}","starred_url":"https://api.github.com/users/alekna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alekna/subscriptions","organizations_url":"https://api.github.com/users/alekna/orgs","repos_url":"https://api.github.com/users/alekna/repos","events_url":"https://api.github.com/users/alekna/events{/privacy}","received_events_url":"https://api.github.com/users/alekna/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-02T17:37:35Z","updated_at":"2016-11-02T17:37:35Z","closed_at":null,"body":"I would strongly suggest changing `chunk_size` from 1 byte to a typical size of a Price packet. This will introduce a very little delay in packet processing but at the same time it will significantly decrease CPU usage.\r\n\r\nThe line that needs to be changed is [__init__.py#L186](https://github.com/oanda/v20-python/blob/master/src/v20/__init__.py#L186)\r\n\r\nSubscribe to all instruments and you'll see how hard is the performance hit with `iter_lines(1)`"}}
{"actor":{"display_login":"alekna"}}