Mercurial > hg > mercurial-source
changeset 34015:4531a967e7f1
configitems: register the 'worker.backgroundclosethreadcount' config
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Fri, 30 Jun 2017 03:46:00 +0200 |
parents | d19804c16710 |
children | c9849bec227a |
files | mercurial/configitems.py mercurial/vfs.py |
diffstat | 2 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/configitems.py +++ b/mercurial/configitems.py @@ -161,3 +161,6 @@ coreconfigitem('worker', 'backgroundcloseminfilecount', default=2048, ) +coreconfigitem('worker', 'backgroundclosethreadcount', + default=4, +)
--- a/mercurial/vfs.py +++ b/mercurial/vfs.py @@ -550,7 +550,7 @@ # Windows defaults to a limit of 512 open files. A buffer of 128 # should give us enough headway. maxqueue = ui.configint('worker', 'backgroundclosemaxqueue') - threadcount = ui.configint('worker', 'backgroundclosethreadcount', 4) + threadcount = ui.configint('worker', 'backgroundclosethreadcount') ui.debug('starting %d threads for background file closing\n' % threadcount)