{"action":"created","issue":{"url":"https://api.github.com/repos/AlanCristhian/statically/issues/8","repository_url":"https://api.github.com/repos/AlanCristhian/statically","labels_url":"https://api.github.com/repos/AlanCristhian/statically/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/AlanCristhian/statically/issues/8/comments","events_url":"https://api.github.com/repos/AlanCristhian/statically/issues/8/events","html_url":"https://github.com/AlanCristhian/statically/issues/8","id":272993162,"number":8,"title":"No speed up in function comparison","user":{"login":"nayefc","id":1350418,"avatar_url":"https://avatars0.githubusercontent.com/u/1350418?v=4","gravatar_id":"","url":"https://api.github.com/users/nayefc","html_url":"https://github.com/nayefc","followers_url":"https://api.github.com/users/nayefc/followers","following_url":"https://api.github.com/users/nayefc/following{/other_user}","gists_url":"https://api.github.com/users/nayefc/gists{/gist_id}","starred_url":"https://api.github.com/users/nayefc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nayefc/subscriptions","organizations_url":"https://api.github.com/users/nayefc/orgs","repos_url":"https://api.github.com/users/nayefc/repos","events_url":"https://api.github.com/users/nayefc/events{/privacy}","received_events_url":"https://api.github.com/users/nayefc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-11-10T16:46:04Z","updated_at":"2018-02-09T16:45:17Z","closed_at":null,"author_association":"NONE","body":"Hello,\r\n\r\nAny idea why both of these run in 15.5us?\r\n\r\n```python\r\nimport cython\r\nimport statically\r\nfrom IPython import get_ipython\r\nipython = get_ipython()\r\n\r\nW = 100\r\nX = 999\r\nY = 103.13\r\n\r\ndef calcpy(a, b, c):\r\n    val = 0\r\n    for i in range(100):\r\n        val += a + b * c + i\r\n    return val\r\n\r\n@statically.typed\r\ndef calcc(a: cython.int, b: cython.int, c: cython.float):\r\n    val: cython.float\r\n    i: cython.int\r\n    for i in range(100):\r\n        val += a + b * c + i\r\n    return val\r\n\r\nprint('py:')\r\nipython.magic(\"timeit calcpy(W, X, Y)\")\r\nprint('c in py:')\r\nipython.magic(\"timeit calcpy(W, X, Y)\")\r\n```\r\n\r\nAre my `val` and `i` variables not getting cythonized properly?"},"comment":{"url":"https://api.github.com/repos/AlanCristhian/statically/issues/comments/364488685","html_url":"https://github.com/AlanCristhian/statically/issues/8#issuecomment-364488685","issue_url":"https://api.github.com/repos/AlanCristhian/statically/issues/8","id":364488685,"user":{"login":"mackeyja92","id":10620022,"avatar_url":"https://avatars1.githubusercontent.com/u/10620022?v=4","gravatar_id":"","url":"https://api.github.com/users/mackeyja92","html_url":"https://github.com/mackeyja92","followers_url":"https://api.github.com/users/mackeyja92/followers","following_url":"https://api.github.com/users/mackeyja92/following{/other_user}","gists_url":"https://api.github.com/users/mackeyja92/gists{/gist_id}","starred_url":"https://api.github.com/users/mackeyja92/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mackeyja92/subscriptions","organizations_url":"https://api.github.com/users/mackeyja92/orgs","repos_url":"https://api.github.com/users/mackeyja92/repos","events_url":"https://api.github.com/users/mackeyja92/events{/privacy}","received_events_url":"https://api.github.com/users/mackeyja92/received_events","type":"User","site_admin":false},"created_at":"2018-02-09T16:45:17Z","updated_at":"2018-02-09T16:45:17Z","author_association":"NONE","body":"@nayefc seems you're running the non-cythonized version twice."}}
{"actor":{"display_login":"mackeyja92"}}