{"action":"created","issue":{"url":"https://api.github.com/repos/tmr232/Sark/issues/44","repository_url":"https://api.github.com/repos/tmr232/Sark","labels_url":"https://api.github.com/repos/tmr232/Sark/issues/44/labels{/name}","comments_url":"https://api.github.com/repos/tmr232/Sark/issues/44/comments","events_url":"https://api.github.com/repos/tmr232/Sark/issues/44/events","html_url":"https://github.com/tmr232/Sark/issues/44","id":162708493,"number":44,"title":"initializing codeblock object slow","user":{"login":"frazahod","id":8978752,"avatar_url":"https://avatars.githubusercontent.com/u/8978752?v=3","gravatar_id":"","url":"https://api.github.com/users/frazahod","html_url":"https://github.com/frazahod","followers_url":"https://api.github.com/users/frazahod/followers","following_url":"https://api.github.com/users/frazahod/following{/other_user}","gists_url":"https://api.github.com/users/frazahod/gists{/gist_id}","starred_url":"https://api.github.com/users/frazahod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frazahod/subscriptions","organizations_url":"https://api.github.com/users/frazahod/orgs","repos_url":"https://api.github.com/users/frazahod/repos","events_url":"https://api.github.com/users/frazahod/events{/privacy}","received_events_url":"https://api.github.com/users/frazahod/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2016-06-28T15:02:24Z","updated_at":"2016-06-30T16:17:04Z","closed_at":null,"body":"I am iterating through a list of addresses and colors for functions, lines, and codeblocks. I use identical code for each with the only difference being whether sark.Function(address)/sark.Line(address) is called or sark.CodeBlock(address). The issue is that when called on my test files the line and function loops take only .05 seconds. The loop that calls codeblock takes 6.5 and has dramatically decreased the speed of my program."},"comment":{"url":"https://api.github.com/repos/tmr232/Sark/issues/comments/229709704","html_url":"https://github.com/tmr232/Sark/issues/44#issuecomment-229709704","issue_url":"https://api.github.com/repos/tmr232/Sark/issues/44","id":229709704,"user":{"login":"frazahod","id":8978752,"avatar_url":"https://avatars.githubusercontent.com/u/8978752?v=3","gravatar_id":"","url":"https://api.github.com/users/frazahod","html_url":"https://github.com/frazahod","followers_url":"https://api.github.com/users/frazahod/followers","following_url":"https://api.github.com/users/frazahod/following{/other_user}","gists_url":"https://api.github.com/users/frazahod/gists{/gist_id}","starred_url":"https://api.github.com/users/frazahod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frazahod/subscriptions","organizations_url":"https://api.github.com/users/frazahod/orgs","repos_url":"https://api.github.com/users/frazahod/repos","events_url":"https://api.github.com/users/frazahod/events{/privacy}","received_events_url":"https://api.github.com/users/frazahod/received_events","type":"User","site_admin":false},"created_at":"2016-06-30T16:17:04Z","updated_at":"2016-06-30T16:17:04Z","body":"So to clarify, this\n\nfor func in sark.functions():\n    flow_chart = sark.FlowChart(func.ea)\n    for block in flow_chart:\n        print block.color\n\nprints out the color that I expect, where as\n\nfor block in sark.codeblocks():\n    print block.color\n\nthis does not.\n\nOn Thu, Jun 30, 2016 at 12:14 PM, Fraser Hood <fraserhood@gmail.com> wrote:\n\n> I brought up the lines because they are printing the color as I would\n> expect them to.\n>\n> On Thu, Jun 30, 2016 at 12:13 PM, Fraser Hood <fraserhood@gmail.com>\n> wrote:\n>\n>> No I realize that. The issue is that one of my blocks is colored, and yet\n>> the print block.color statement never prints anything other than None.\n>>\n>> On Thu, Jun 30, 2016 at 12:07 PM, Tamir Bahar <notifications@github.com>\n>> wrote:\n>>\n>>> Block color and line color are two different things. You can see the\n>>> implementation here -\n>>> https://github.com/tmr232/Sark/blob/master/sark/codeblocks.py#L44\n>>>\n>>> What are you trying to do?\n>>>\n>>> —\n>>> You are receiving this because you authored the thread.\n>>> Reply to this email directly, view it on GitHub\n>>> <https://github.com/tmr232/Sark/issues/44#issuecomment-229706718>, or mute\n>>> the thread\n>>> <https://github.com/notifications/unsubscribe/AIkBQNifTj4nDUf9W7OODg4Zv6-AiySgks5qQ-mmgaJpZM4JAMpH>\n>>> .\n>>>\n>>\n>>\n>\n"}}
{"actor":{"display_login":"frazahod"}}