Increasing worker thread count to 30

If it takes a while to compile the user's C++ file, the YCM client/server may
run out of threads. Vim gets laggy then.

This is a stopgap measure until I think of something better.
This commit is contained in:
Strahinja Val Markovic 2014-02-07 12:46:45 -08:00
parent 8ceb453881
commit 18be5c254a
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ from ycm import vimsupport
from ycm.server.responses import ServerError, UnknownExtraConf from ycm.server.responses import ServerError, UnknownExtraConf
HEADERS = {'content-type': 'application/json'} HEADERS = {'content-type': 'application/json'}
EXECUTOR = UnsafeThreadPoolExecutor( max_workers = 10 ) EXECUTOR = UnsafeThreadPoolExecutor( max_workers = 30 )
# Setting this to None seems to screw up the Requests/urllib3 libs. # Setting this to None seems to screw up the Requests/urllib3 libs.
DEFAULT_TIMEOUT_SEC = 30 DEFAULT_TIMEOUT_SEC = 30

View File

@ -91,7 +91,7 @@ def Main():
waitress.serve( handlers.app, waitress.serve( handlers.app,
host = args.host, host = args.host,
port = args.port, port = args.port,
threads = 10 ) threads = 30 )
if __name__ == "__main__": if __name__ == "__main__":