{"action":"created","issue":{"url":"https://api.github.com/repos/citp/BlockSci/issues/143","repository_url":"https://api.github.com/repos/citp/BlockSci","labels_url":"https://api.github.com/repos/citp/BlockSci/issues/143/labels{/name}","comments_url":"https://api.github.com/repos/citp/BlockSci/issues/143/comments","events_url":"https://api.github.com/repos/citp/BlockSci/issues/143/events","html_url":"https://github.com/citp/BlockSci/issues/143","id":343336794,"node_id":"MDU6SXNzdWUzNDMzMzY3OTQ=","number":143,"title":"Cluster methods extremely slow","user":{"login":"Husam92","id":10672009,"node_id":"MDQ6VXNlcjEwNjcyMDA5","avatar_url":"https://avatars1.githubusercontent.com/u/10672009?v=4","gravatar_id":"","url":"https://api.github.com/users/Husam92","html_url":"https://github.com/Husam92","followers_url":"https://api.github.com/users/Husam92/followers","following_url":"https://api.github.com/users/Husam92/following{/other_user}","gists_url":"https://api.github.com/users/Husam92/gists{/gist_id}","starred_url":"https://api.github.com/users/Husam92/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Husam92/subscriptions","organizations_url":"https://api.github.com/users/Husam92/orgs","repos_url":"https://api.github.com/users/Husam92/repos","events_url":"https://api.github.com/users/Husam92/events{/privacy}","received_events_url":"https://api.github.com/users/Husam92/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-21T16:03:12Z","updated_at":"2018-07-28T12:01:10Z","closed_at":null,"author_association":"NONE","body":"Hi all,\r\n\r\nI have been experiencing this across almost all versions of BlockSci when using the ClusterManager.\r\n\r\nSo, to explain what is exactly happening, let's take this example. I want to iterate through a list of addresses. Each iteration will call the following methods:\r\n\r\n`sci_address = chain.address_from_string(\"xxxxxxxxxxxxxxx\") `\r\n          ` if sci_address is not None: `\r\n                     `cluster = cluster_manager.cluster_with_address(sci_address) `\r\n                     `if cluster is not None: `\r\n                            `print(cluster.size()) //same behavior with len(cluster) `\r\n\r\nApparently, the problem beings as soon as you try to access the cluster object. The script just hangs and if I do htop to check the processes running, I see the following:\r\n\r\n<img width=\"561\" alt=\"screen shot 2018-07-21 at 6 55 15 pm\" src=\"https://user-images.githubusercontent.com/10672009/43037666-5f744548-8d18-11e8-976d-693376e1a2b7.png\">\r\n\r\nAny ideas? Does accessing cluster object supposed to be extremely slow? Or is it for certain clusters? (because I tried this with many addresses and it does not matter how large is the cluster being retrieved) But, sometimes it succeeds after a few seconds of processing."},"comment":{"url":"https://api.github.com/repos/citp/BlockSci/issues/comments/408602465","html_url":"https://github.com/citp/BlockSci/issues/143#issuecomment-408602465","issue_url":"https://api.github.com/repos/citp/BlockSci/issues/143","id":408602465,"node_id":"MDEyOklzc3VlQ29tbWVudDQwODYwMjQ2NQ==","user":{"login":"maltemoeser","id":2059692,"node_id":"MDQ6VXNlcjIwNTk2OTI=","avatar_url":"https://avatars0.githubusercontent.com/u/2059692?v=4","gravatar_id":"","url":"https://api.github.com/users/maltemoeser","html_url":"https://github.com/maltemoeser","followers_url":"https://api.github.com/users/maltemoeser/followers","following_url":"https://api.github.com/users/maltemoeser/following{/other_user}","gists_url":"https://api.github.com/users/maltemoeser/gists{/gist_id}","starred_url":"https://api.github.com/users/maltemoeser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maltemoeser/subscriptions","organizations_url":"https://api.github.com/users/maltemoeser/orgs","repos_url":"https://api.github.com/users/maltemoeser/repos","events_url":"https://api.github.com/users/maltemoeser/events{/privacy}","received_events_url":"https://api.github.com/users/maltemoeser/received_events","type":"User","site_admin":false},"created_at":"2018-07-28T12:01:10Z","updated_at":"2018-07-28T12:01:10Z","author_association":"COLLABORATOR","body":"I think the size() method will do some additional processing to account for equiv addresses, using `cluster.type_equiv_size` should be faster"}}
{"actor":{"display_login":"maltemoeser"}}