This speeds up completion on my system when a lot of candidates are returned, by
a factor of 2.5 (#228).
Inspired by https://github.com/Sarcasm/irony-mode/issues/131#issuecomment-
60008803.
(defun company-clang--start-process (prefix callback &rest args)
(let ((objc (derived-mode-p 'objc-mode))
- (buf (get-buffer-create "*clang-output*")))
+ (buf (get-buffer-create "*clang-output*"))
+ (process-adaptive-read-buffering nil))
(with-current-buffer buf (erase-buffer))
(if (get-buffer-process buf)
(funcall callback nil)