From a8e9b61f3fa8819a2a3682ce90315eed749f7f6c Mon Sep 17 00:00:00 2001 From: Strahinja Val Markovic Date: Fri, 11 May 2012 10:09:52 -0700 Subject: [PATCH] Going back to 2-4 threads --- cpp/ycm/Completer.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cpp/ycm/Completer.cpp b/cpp/ycm/Completer.cpp index d0a22e9d..eb710344 100644 --- a/cpp/ycm/Completer.cpp +++ b/cpp/ycm/Completer.cpp @@ -39,8 +39,8 @@ namespace YouCompleteMe namespace { -const unsigned int MAX_ASYNC_THREADS = 1; -const unsigned int MIN_ASYNC_THREADS = 1; +const unsigned int MAX_ASYNC_THREADS = 4; +const unsigned int MIN_ASYNC_THREADS = 2; void ThreadMain( TaskStack &task_stack ) { @@ -161,9 +161,9 @@ Future Completer::CandidatesForQueryAndTypeAsync( shared_ptr< packaged_task< AsyncResults > > task = make_shared< packaged_task< AsyncResults > >( bind( &Completer::ResultsForQueryAndType, - boost::cref( *this ), - query, - filetype ) ); + boost::cref( *this ), + query, + filetype ) ); unique_future< AsyncResults > future = task->get_future();