Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

auto complete in C/C++ project is very slow #4818

Closed
chengyi opened this issue Jan 26, 2016 · 5 comments
Closed

auto complete in C/C++ project is very slow #4818

chengyi opened this issue Jan 26, 2016 · 5 comments

Comments

@chengyi
Copy link

chengyi commented Jan 26, 2016

I use company in my C/C++ project, But the tips popup window shows very slow and sometimes doesn't show at all.
is it required some additional config?

@phinicota
Copy link

Same here. Haven't found a solution and stopped using auto-complete all together but I'd like to know if a solution exists.

@kzjeef
Copy link

kzjeef commented Mar 29, 2016

Have same problem here too.

When I open more and more files in buffers, typing is too slow to typing.

@kzjeef
Copy link

kzjeef commented Mar 29, 2016

I think i found the cause,
after debugging company 's backend, I the lag is caused by company clang backend,
which enabled by c-c++ layer.

after disable c-lang support in that layer, the typing is very smooth now.

Hope this helpful, maybe it's should fire a bug to c-c++ layer's clang support.

btw, you can type
company-diag to check the information about company backend.

@chengyi
Copy link
Author

chengyi commented Apr 15, 2016

@kzjeef In fact, you must pass the ccorrect compiler params through .clang_complete file.
so company will show correct tips with clang backend.

@deb0ch
Copy link
Contributor

deb0ch commented Oct 11, 2016

Now you can also use the ycmd layer as an alternative, which has the reputation of being much faster than company-clang, and is asynchronous.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants