comparison mercurial/vfs.py @ 33234:b62d13506860

configitems: gather comment related to 'worker.backgroundclosemaxqueue' Thanks to Yuya for pointing this out.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 05 Jul 2017 00:01:30 +0200
parents 4531a967e7f1
children 15e9cbe6ae49
comparison
equal deleted inserted replaced
33233:c9849bec227a 33234:b62d13506860
545 # FUTURE dynamically start background threads after minfilecount closes. 545 # FUTURE dynamically start background threads after minfilecount closes.
546 # (We don't currently have any callers that don't know their file count) 546 # (We don't currently have any callers that don't know their file count)
547 if expectedcount > 0 and expectedcount < minfilecount: 547 if expectedcount > 0 and expectedcount < minfilecount:
548 return 548 return
549 549
550 # Windows defaults to a limit of 512 open files. A buffer of 128
551 # should give us enough headway.
552 maxqueue = ui.configint('worker', 'backgroundclosemaxqueue') 550 maxqueue = ui.configint('worker', 'backgroundclosemaxqueue')
553 threadcount = ui.configint('worker', 'backgroundclosethreadcount') 551 threadcount = ui.configint('worker', 'backgroundclosethreadcount')
554 552
555 ui.debug('starting %d threads for background file closing\n' % 553 ui.debug('starting %d threads for background file closing\n' %
556 threadcount) 554 threadcount)