When there is a great number of potential completion candidates, I often find that autocomplete stalls for a second or so (and clang-complete blows up to several megabytes). I have tried to fix this by only returning candidates beginning with ac-clang-saved-prefix; also, no more than ac-candidate-limit candidates are returned. This seems to work for me, but I'm not sure whether my changes are good enough for a pull request. Comments greatly appreciated
When there is a great number of potential completion candidates, I often find that autocomplete stalls for a second or so (and clang-complete blows up to several megabytes). I have tried to fix this by only returning candidates beginning with ac-clang-saved-prefix; also, no more than ac-candidate-limit candidates are returned. This seems to work for me, but I'm not sure whether my changes are good enough for a pull request. Comments greatly appreciated