{"action":"created","issue":{"url":"https://api.github.com/repos/skulpt/skulpt/issues/403","labels_url":"https://api.github.com/repos/skulpt/skulpt/issues/403/labels{/name}","comments_url":"https://api.github.com/repos/skulpt/skulpt/issues/403/comments","events_url":"https://api.github.com/repos/skulpt/skulpt/issues/403/events","html_url":"https://github.com/skulpt/skulpt/issues/403","id":75743401,"number":403,"title":"Performance issues with suspensions","user":{"login":"rixner","id":1915454,"avatar_url":"https://avatars.githubusercontent.com/u/1915454?v=3","gravatar_id":"","url":"https://api.github.com/users/rixner","html_url":"https://github.com/rixner","followers_url":"https://api.github.com/users/rixner/followers","following_url":"https://api.github.com/users/rixner/following{/other_user}","gists_url":"https://api.github.com/users/rixner/gists{/gist_id}","starred_url":"https://api.github.com/users/rixner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rixner/subscriptions","organizations_url":"https://api.github.com/users/rixner/orgs","repos_url":"https://api.github.com/users/rixner/repos","events_url":"https://api.github.com/users/rixner/events{/privacy}","received_events_url":"https://api.github.com/users/rixner/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":16,"created_at":"2015-05-12T21:21:24Z","updated_at":"2015-05-23T10:25:32Z","closed_at":null,"body":"I spent some time looking into the slowdowns I have seen with suspensions.  I am assuming that others can reproduce my findings.  I used the following simple program (there is nothing special about this program, the issue is very common for me):\r\n\r\n```\r\nimport time\r\n\r\nstart = time.time()\r\n\r\nDIM = 1200\r\n\r\ngrid = [[0 for x in range(DIM)] for y in range(DIM)]\r\n\r\nfor x in range(DIM):\r\n    for y in range(DIM):\r\n        grid[x][y] += 2\r\n        \r\nprint \"done\"\r\n\r\nend = time.time()\r\nprint \"elapsed:\", end - start\r\n```\r\n\r\nIf you run this program on the current head (1b6d815) and on the commit before suspensions were added (dc03fba) you should see a performance difference.  On my machine, it took 2.4 seconds prior to accepting suspensions and 3.34 seconds now.  Just now, I used ```git bisect``` to try to hunt down the problem (I had not done that before) and it says that cce01be is the problem commit.\r\n\r\nCan anyone else confirm or refute that they are seeing the same behavior?"},"comment":{"url":"https://api.github.com/repos/skulpt/skulpt/issues/comments/104879299","html_url":"https://github.com/skulpt/skulpt/issues/403#issuecomment-104879299","issue_url":"https://api.github.com/repos/skulpt/skulpt/issues/403","id":104879299,"user":{"login":"Jacco","id":1318341,"avatar_url":"https://avatars.githubusercontent.com/u/1318341?v=3","gravatar_id":"","url":"https://api.github.com/users/Jacco","html_url":"https://github.com/Jacco","followers_url":"https://api.github.com/users/Jacco/followers","following_url":"https://api.github.com/users/Jacco/following{/other_user}","gists_url":"https://api.github.com/users/Jacco/gists{/gist_id}","starred_url":"https://api.github.com/users/Jacco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jacco/subscriptions","organizations_url":"https://api.github.com/users/Jacco/orgs","repos_url":"https://api.github.com/users/Jacco/repos","events_url":"https://api.github.com/users/Jacco/events{/privacy}","received_events_url":"https://api.github.com/users/Jacco/received_events","type":"User","site_admin":false},"created_at":"2015-05-23T10:25:32Z","updated_at":"2015-05-23T10:25:32Z","body":"Maybe suspensions can be timed using performance.timing.now()"}}