{"action":"created","issue":{"url":"https://api.github.com/repos/idanarye/vim-dutyl/issues/10","labels_url":"https://api.github.com/repos/idanarye/vim-dutyl/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/idanarye/vim-dutyl/issues/10/comments","events_url":"https://api.github.com/repos/idanarye/vim-dutyl/issues/10/events","html_url":"https://github.com/idanarye/vim-dutyl/issues/10","id":53229965,"number":10,"title":"Imports kill DCD performance","user":{"login":"rsw0x","id":7722833,"avatar_url":"https://avatars.githubusercontent.com/u/7722833?v=3","gravatar_id":"","url":"https://api.github.com/users/rsw0x","html_url":"https://github.com/rsw0x","followers_url":"https://api.github.com/users/rsw0x/followers","following_url":"https://api.github.com/users/rsw0x/following{/other_user}","gists_url":"https://api.github.com/users/rsw0x/gists{/gist_id}","starred_url":"https://api.github.com/users/rsw0x/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsw0x/subscriptions","organizations_url":"https://api.github.com/users/rsw0x/orgs","repos_url":"https://api.github.com/users/rsw0x/repos","events_url":"https://api.github.com/users/rsw0x/events{/privacy}","received_events_url":"https://api.github.com/users/rsw0x/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-01-01T22:07:20Z","updated_at":"2015-01-03T23:24:37Z","closed_at":null,"body":"After using the profile feature of vim, roughly 90%+ of the completion time is spent in functions.importPaths in dub.vim. Completions are taking 1+ second each(making it near unusable,) I modified the function to return an empty array and manually added my imports and the completions are basically instant.\r\n\r\nAlso, repeatedly inserting the import paths slows down DCD drastically, start it up in a terminal and monitor the logging - it will get slower linearly as the same paths repeatedly get added."},"comment":{"url":"https://api.github.com/repos/idanarye/vim-dutyl/issues/comments/68613752","html_url":"https://github.com/idanarye/vim-dutyl/issues/10#issuecomment-68613752","issue_url":"https://api.github.com/repos/idanarye/vim-dutyl/issues/10","id":68613752,"user":{"login":"rsw0x","id":7722833,"avatar_url":"https://avatars.githubusercontent.com/u/7722833?v=3","gravatar_id":"","url":"https://api.github.com/users/rsw0x","html_url":"https://github.com/rsw0x","followers_url":"https://api.github.com/users/rsw0x/followers","following_url":"https://api.github.com/users/rsw0x/following{/other_user}","gists_url":"https://api.github.com/users/rsw0x/gists{/gist_id}","starred_url":"https://api.github.com/users/rsw0x/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsw0x/subscriptions","organizations_url":"https://api.github.com/users/rsw0x/orgs","repos_url":"https://api.github.com/users/rsw0x/repos","events_url":"https://api.github.com/users/rsw0x/events{/privacy}","received_events_url":"https://api.github.com/users/rsw0x/received_events","type":"User","site_admin":false},"created_at":"2015-01-03T23:24:37Z","updated_at":"2015-01-03T23:24:37Z","body":"Fork works great, without imports it's about ~30% faster, with imports it's about three times as fast (0.3s -> 0.09s per full completion), definitely more responsive."}}