{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vscode-python/issues/3563","repository_url":"https://api.github.com/repos/Microsoft/vscode-python","labels_url":"https://api.github.com/repos/Microsoft/vscode-python/issues/3563/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode-python/issues/3563/comments","events_url":"https://api.github.com/repos/Microsoft/vscode-python/issues/3563/events","html_url":"https://github.com/Microsoft/vscode-python/issues/3563","id":387789173,"node_id":"MDU6SXNzdWUzODc3ODkxNzM=","number":3563,"title":"Heavy CPU usage (2)","user":{"login":"SiLiKhon","id":13967024,"node_id":"MDQ6VXNlcjEzOTY3MDI0","avatar_url":"https://avatars0.githubusercontent.com/u/13967024?v=4","gravatar_id":"","url":"https://api.github.com/users/SiLiKhon","html_url":"https://github.com/SiLiKhon","followers_url":"https://api.github.com/users/SiLiKhon/followers","following_url":"https://api.github.com/users/SiLiKhon/following{/other_user}","gists_url":"https://api.github.com/users/SiLiKhon/gists{/gist_id}","starred_url":"https://api.github.com/users/SiLiKhon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SiLiKhon/subscriptions","organizations_url":"https://api.github.com/users/SiLiKhon/orgs","repos_url":"https://api.github.com/users/SiLiKhon/repos","events_url":"https://api.github.com/users/SiLiKhon/events{/privacy}","received_events_url":"https://api.github.com/users/SiLiKhon/received_events","type":"User","site_admin":false},"labels":[{"id":717138119,"node_id":"MDU6TGFiZWw3MTcxMzgxMTk=","url":"https://api.github.com/repos/Microsoft/vscode-python/labels/info%20needed","name":"info needed","color":"00FF00","default":false},{"id":1093780860,"node_id":"MDU6TGFiZWwxMDkzNzgwODYw","url":"https://api.github.com/repos/Microsoft/vscode-python/labels/triage","name":"triage","color":"ed38c0","default":false}],"state":"closed","locked":false,"assignee":{"login":"brettcannon","id":54418,"node_id":"MDQ6VXNlcjU0NDE4","avatar_url":"https://avatars0.githubusercontent.com/u/54418?v=4","gravatar_id":"","url":"https://api.github.com/users/brettcannon","html_url":"https://github.com/brettcannon","followers_url":"https://api.github.com/users/brettcannon/followers","following_url":"https://api.github.com/users/brettcannon/following{/other_user}","gists_url":"https://api.github.com/users/brettcannon/gists{/gist_id}","starred_url":"https://api.github.com/users/brettcannon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brettcannon/subscriptions","organizations_url":"https://api.github.com/users/brettcannon/orgs","repos_url":"https://api.github.com/users/brettcannon/repos","events_url":"https://api.github.com/users/brettcannon/events{/privacy}","received_events_url":"https://api.github.com/users/brettcannon/received_events","type":"User","site_admin":false},"assignees":[{"login":"brettcannon","id":54418,"node_id":"MDQ6VXNlcjU0NDE4","avatar_url":"https://avatars0.githubusercontent.com/u/54418?v=4","gravatar_id":"","url":"https://api.github.com/users/brettcannon","html_url":"https://github.com/brettcannon","followers_url":"https://api.github.com/users/brettcannon/followers","following_url":"https://api.github.com/users/brettcannon/following{/other_user}","gists_url":"https://api.github.com/users/brettcannon/gists{/gist_id}","starred_url":"https://api.github.com/users/brettcannon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brettcannon/subscriptions","organizations_url":"https://api.github.com/users/brettcannon/orgs","repos_url":"https://api.github.com/users/brettcannon/repos","events_url":"https://api.github.com/users/brettcannon/events{/privacy}","received_events_url":"https://api.github.com/users/brettcannon/received_events","type":"User","site_admin":false}],"milestone":null,"comments":8,"created_at":"2018-12-05T14:44:32Z","updated_at":"2018-12-11T00:58:41Z","closed_at":"2018-12-11T00:57:48Z","author_association":"NONE","body":"This might be related to https://github.com/Microsoft/vscode-python/issues/2149\r\nI noticed a python process running at high cpu (80-90%) for a long time (at least 2 minutes) when I'm editing the code. After a few acts of commenting lines in and out I was able to judge that this CPU jump was caused by a `tqdm` call.\r\n\r\nHere is a mwe reproducing the problem for me:\r\n```\r\nfrom tqdm import tqdm\r\n\r\nx = 0\r\nfor i in tqdm(range(10)):\r\n    x += i\r\n\r\nprint(x)\r\n```\r\nIf I remove the tqdm call and save the file CPU usage drops instantly:\r\n```\r\nfrom tqdm import tqdm\r\n\r\nx = 0\r\nfor i in (range(10)):\r\n    x += i\r\n\r\nprint(x)\r\n```\r\n\r\n## Environment data\r\n\r\n- VS Code version: 1.29.1\r\n- Extension version (available under the Extensions sidebar): 2018.11.0\r\n- OS and version: OS X 10.11.6\r\n- Python version (& distribution if applicable, e.g. Anaconda): 3.6.6, Anaconda\r\n- Type of virtual environment used (N/A | venv | virtualenv | conda | ...): conda \r\n- Relevant/affected Python packages and their versions: tqdm 4.28.1\r\n\r\n## Expected behaviour\r\n\r\nNo heavy CPU usage\r\n\r\n## Actual behaviour\r\n\r\nHeavy CPU usage\r\n\r\n## Steps to reproduce:\r\n1. Type in the code above\r\n2. Save\r\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/vscode-python/issues/comments/446032746","html_url":"https://github.com/Microsoft/vscode-python/issues/3563#issuecomment-446032746","issue_url":"https://api.github.com/repos/Microsoft/vscode-python/issues/3563","id":446032746,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NjAzMjc0Ng==","user":{"login":"brettcannon","id":54418,"node_id":"MDQ6VXNlcjU0NDE4","avatar_url":"https://avatars0.githubusercontent.com/u/54418?v=4","gravatar_id":"","url":"https://api.github.com/users/brettcannon","html_url":"https://github.com/brettcannon","followers_url":"https://api.github.com/users/brettcannon/followers","following_url":"https://api.github.com/users/brettcannon/following{/other_user}","gists_url":"https://api.github.com/users/brettcannon/gists{/gist_id}","starred_url":"https://api.github.com/users/brettcannon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brettcannon/subscriptions","organizations_url":"https://api.github.com/users/brettcannon/orgs","repos_url":"https://api.github.com/users/brettcannon/repos","events_url":"https://api.github.com/users/brettcannon/events{/privacy}","received_events_url":"https://api.github.com/users/brettcannon/received_events","type":"User","site_admin":false},"created_at":"2018-12-11T00:58:41Z","updated_at":"2018-12-11T00:58:41Z","author_association":"MEMBER","body":"And FYI I don't know what is creating the\r\n```txt\r\nParsing complete. Waiting for analysis entries to enqueue.\r\nEnqueue complete. Waiting for analysis to complete.\r\nWaiting for parsing to complete.\r\nParsing complete. Waiting for analysis entries to enqueue.\r\nEnqueue complete. Waiting for analysis to complete.\r\n```\r\noutput as our extension doesn't do that."}}
{"actor":{"display_login":"brettcannon"}}