{"action":"created","issue":{"url":"https://api.github.com/repos/dw/mitogen/issues/39","repository_url":"https://api.github.com/repos/dw/mitogen","labels_url":"https://api.github.com/repos/dw/mitogen/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/dw/mitogen/issues/39/comments","events_url":"https://api.github.com/repos/dw/mitogen/issues/39/events","html_url":"https://github.com/dw/mitogen/issues/39","id":259724114,"number":39,"title":"core: IO logging is too expensive","user":{"login":"dw","id":2315,"avatar_url":"https://avatars0.githubusercontent.com/u/2315?v=4","gravatar_id":"","url":"https://api.github.com/users/dw","html_url":"https://github.com/dw","followers_url":"https://api.github.com/users/dw/followers","following_url":"https://api.github.com/users/dw/following{/other_user}","gists_url":"https://api.github.com/users/dw/gists{/gist_id}","starred_url":"https://api.github.com/users/dw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dw/subscriptions","organizations_url":"https://api.github.com/users/dw/orgs","repos_url":"https://api.github.com/users/dw/repos","events_url":"https://api.github.com/users/dw/events{/privacy}","received_events_url":"https://api.github.com/users/dw/received_events","type":"User","site_admin":false},"labels":[{"id":424449778,"url":"https://api.github.com/repos/dw/mitogen/labels/bug","name":"bug","color":"ee0701","default":true},{"id":424449780,"url":"https://api.github.com/repos/dw/mitogen/labels/core","name":"core","color":"84b6eb","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-09-22T07:15:53Z","updated_at":"2018-02-17T00:19:26Z","closed_at":null,"author_association":"OWNER","body":"Even when disabled it is still 10% of the total cost of rsync. Adding an ``_iolog = False`` in core.py and regexing all ``IOLOG.debug()`` calls to ``_iolog and IOLOG.debug()`` works, but it's a mess, and doesn't work well for other modules importing the logger.\r\n"},"comment":{"url":"https://api.github.com/repos/dw/mitogen/issues/comments/366395856","html_url":"https://github.com/dw/mitogen/issues/39#issuecomment-366395856","issue_url":"https://api.github.com/repos/dw/mitogen/issues/39","id":366395856,"user":{"login":"moreati","id":174450,"avatar_url":"https://avatars2.githubusercontent.com/u/174450?v=4","gravatar_id":"","url":"https://api.github.com/users/moreati","html_url":"https://github.com/moreati","followers_url":"https://api.github.com/users/moreati/followers","following_url":"https://api.github.com/users/moreati/following{/other_user}","gists_url":"https://api.github.com/users/moreati/gists{/gist_id}","starred_url":"https://api.github.com/users/moreati/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moreati/subscriptions","organizations_url":"https://api.github.com/users/moreati/orgs","repos_url":"https://api.github.com/users/moreati/repos","events_url":"https://api.github.com/users/moreati/events{/privacy}","received_events_url":"https://api.github.com/users/moreati/received_events","type":"User","site_admin":false},"created_at":"2018-02-17T00:19:26Z","updated_at":"2018-02-17T00:19:26Z","author_association":"CONTRIBUTOR","body":"`__debug__` & -O could have potential here http://www.engyrus.com/2013/03/idtkap-4-debug-and-o.html\r\n\r\n>The -O flag is documented as removing assert instructions as though you never wrote them. But that's not all it does. It also sets a constant, `__debug__`, which is normally `True`, to `False`. The value of `__debug__` is known at compile time, so Python can use it to completely discard conditional blocks predicated on `__debug__`, just as it does with assert statements, when running with the `-O` flag. And in fact, this is exactly what Python does!"}}
{"actor":{"display_login":"moreati"}}