# HG changeset patch # User Pierre-Yves David # Date 1498787159 -7200 # Node ID d19804c167101eaa39c0cb71156555081f3ae6b3 # Parent 5dcbd2045dcb7add5838533e261e97ce4aef7e46 configitems: register the 'worker.backgroundcloseminfilecount' config diff -r 5dcbd2045dcb -r d19804c16710 mercurial/configitems.py --- a/mercurial/configitems.py Fri Jun 30 03:45:58 2017 +0200 +++ b/mercurial/configitems.py Fri Jun 30 03:45:59 2017 +0200 @@ -158,3 +158,6 @@ coreconfigitem('worker', 'backgroundclosemaxqueue', default=384, ) +coreconfigitem('worker', 'backgroundcloseminfilecount', + default=2048, +) diff -r 5dcbd2045dcb -r d19804c16710 mercurial/vfs.py --- a/mercurial/vfs.py Fri Jun 30 03:45:58 2017 +0200 +++ b/mercurial/vfs.py Fri Jun 30 03:45:59 2017 +0200 @@ -541,8 +541,7 @@ # There is overhead to starting and stopping the background threads. # Don't do background processing unless the file count is large enough # to justify it. - minfilecount = ui.configint('worker', 'backgroundcloseminfilecount', - 2048) + minfilecount = ui.configint('worker', 'backgroundcloseminfilecount') # FUTURE dynamically start background threads after minfilecount closes. # (We don't currently have any callers that don't know their file count) if expectedcount > 0 and expectedcount < minfilecount: