[ThreadPool] Allow heavier initialization when using --server flag
authorAndrés G. Aragoneses <knocte@gmail.com>
Tue, 6 Aug 2013 08:32:54 +0000 (10:32 +0200)
committerAndrés G. Aragoneses <knocte@gmail.com>
Tue, 6 Aug 2013 08:32:54 +0000 (10:32 +0200)
commit26d0b81c266f87df259ccb297bc22d60768e2e72
treebd8df95a707d0af6b6bbd736d65c124efe0c8a1f
parent0c3b528747c876b14b96b7b63be1005d4409144b
[ThreadPool] Allow heavier initialization when using --server flag

Create on demand up to min_threads to avoid startup penalty, avoiding
throttling of threadpool worker thread creation (for now, using
a --server flag) at initialization.

When throttling happens, operations such as parallel https requests were
slowed down significantly due to all of the threads created in order
to complete the SSL operations.

Based on @kamalaboulhosn's patch (https://github.com/mono/mono/pull/640/files)
man/mono.1
mono/metadata/mono-config.c
mono/metadata/mono-config.h
mono/metadata/threadpool.c
mono/mini/driver.c