{"action":"created","issue":{"url":"https://api.github.com/repos/dan-t/rusty-tags/issues/43","repository_url":"https://api.github.com/repos/dan-t/rusty-tags","labels_url":"https://api.github.com/repos/dan-t/rusty-tags/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/dan-t/rusty-tags/issues/43/comments","events_url":"https://api.github.com/repos/dan-t/rusty-tags/issues/43/events","html_url":"https://github.com/dan-t/rusty-tags/issues/43","id":273174425,"node_id":"MDU6SXNzdWUyNzMxNzQ0MjU=","number":43,"title":"CPU hungry","user":{"login":"nyarly","id":127548,"node_id":"MDQ6VXNlcjEyNzU0OA==","avatar_url":"https://avatars2.githubusercontent.com/u/127548?v=4","gravatar_id":"","url":"https://api.github.com/users/nyarly","html_url":"https://github.com/nyarly","followers_url":"https://api.github.com/users/nyarly/followers","following_url":"https://api.github.com/users/nyarly/following{/other_user}","gists_url":"https://api.github.com/users/nyarly/gists{/gist_id}","starred_url":"https://api.github.com/users/nyarly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nyarly/subscriptions","organizations_url":"https://api.github.com/users/nyarly/orgs","repos_url":"https://api.github.com/users/nyarly/repos","events_url":"https://api.github.com/users/nyarly/events{/privacy}","received_events_url":"https://api.github.com/users/nyarly/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":17,"created_at":"2017-11-11T20:38:12Z","updated_at":"2018-10-15T14:46:34Z","closed_at":null,"author_association":"NONE","body":"I'm not sure how to provide better diagnostics than this, but for a moderately sized project (in terms of dependencies) rusty-tags consumes a lot of CPU - all 4 procs peg for about 2 minutes every time it's run. This isn't a huge deal, except when trying to use it as described in the README - to run on every save in Vim. Additionally, it seems to acquire a lock on the code files, so that `cargo` waits for it to complete.\r\n\r\nAm I doing something wrong? Can I provide more information? My Cargo.toml looks like:\r\n```\r\n...\r\n[dependencies]\r\nerror-chain = \"^0.11\"\r\ntokio-tls = { version = \"^0.1\", features = [\"tokio-proto\"] }\r\ntokio-core = \"^0.1\"\r\ntokio-proto = \"^0.1\"\r\ntokio-service = \"^0.1\"\r\nfutures = \"^0.1\"\r\nhyper = \"^0.11\"\r\nhyper-tls = \"^0.1\"\r\nnative-tls = \"^0.1\"\r\nurl = \"^1.0\"\r\nuritemplate = \"^0.1\"\r\noauth2 = \"^1.1\"\r\nrand = \"^0.3\"\r\nbase64 = \"^0.7\"\r\ntoml = \"^0.4\"\r\nserde = \"^1.0\"\r\nserde_derive = \"^1.0\"\r\n```"},"comment":{"url":"https://api.github.com/repos/dan-t/rusty-tags/issues/comments/429882969","html_url":"https://github.com/dan-t/rusty-tags/issues/43#issuecomment-429882969","issue_url":"https://api.github.com/repos/dan-t/rusty-tags/issues/43","id":429882969,"node_id":"MDEyOklzc3VlQ29tbWVudDQyOTg4Mjk2OQ==","user":{"login":"edelangh","id":9694304,"node_id":"MDQ6VXNlcjk2OTQzMDQ=","avatar_url":"https://avatars1.githubusercontent.com/u/9694304?v=4","gravatar_id":"","url":"https://api.github.com/users/edelangh","html_url":"https://github.com/edelangh","followers_url":"https://api.github.com/users/edelangh/followers","following_url":"https://api.github.com/users/edelangh/following{/other_user}","gists_url":"https://api.github.com/users/edelangh/gists{/gist_id}","starred_url":"https://api.github.com/users/edelangh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edelangh/subscriptions","organizations_url":"https://api.github.com/users/edelangh/orgs","repos_url":"https://api.github.com/users/edelangh/repos","events_url":"https://api.github.com/users/edelangh/events{/privacy}","received_events_url":"https://api.github.com/users/edelangh/received_events","type":"User","site_admin":false},"created_at":"2018-10-15T14:46:34Z","updated_at":"2018-10-15T14:46:34Z","author_association":"NONE","body":"```\r\n[~/work/MyProject]$ time ctags --languages=+Rust **/*.rs\r\nctags --languages=+Rust **/*.rs  0.30s user 0.05s system 99% cpu 0.344 total\r\n[~/work/MyProject]$ time ctags --languages=+Rust **/*.rs ~/.cargo/**/*.rs\r\nctags --languages=+Rust **/*.rs ~/.cargo/**/*.rs  16.91s user 0.76s system 91% cpu 19.324 total\r\n[~/work/MyProject]$ time ctags --languages=+Rust **/*.rs ~/.cargo/**/*.rs \r\nctags --languages=+Rust **/*.rs ~/.cargo/**/*.rs  16.76s user 0.57s system 99% cpu 17.474 total\r\n```"}}
{"actor":{"display_login":"edelangh"}}