comparison mercurial/vfs.py @ 33230:5dcbd2045dcb

configitems: register the 'worker.backgroundclosemaxqueue' config
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Fri, 30 Jun 2017 03:45:58 +0200
parents 7ad95626f6a7
children d19804c16710
comparison
equal deleted inserted replaced
33229:dd50a370c8cb 33230:5dcbd2045dcb
548 if expectedcount > 0 and expectedcount < minfilecount: 548 if expectedcount > 0 and expectedcount < minfilecount:
549 return 549 return
550 550
551 # Windows defaults to a limit of 512 open files. A buffer of 128 551 # Windows defaults to a limit of 512 open files. A buffer of 128
552 # should give us enough headway. 552 # should give us enough headway.
553 maxqueue = ui.configint('worker', 'backgroundclosemaxqueue', 384) 553 maxqueue = ui.configint('worker', 'backgroundclosemaxqueue')
554 threadcount = ui.configint('worker', 'backgroundclosethreadcount', 4) 554 threadcount = ui.configint('worker', 'backgroundclosethreadcount', 4)
555 555
556 ui.debug('starting %d threads for background file closing\n' % 556 ui.debug('starting %d threads for background file closing\n' %
557 threadcount) 557 threadcount)
558 558