Show More
@@ -158,3 +158,6 b" coreconfigitem('ui', 'quiet'," | |||||
158 | coreconfigitem('worker', 'backgroundclosemaxqueue', |
|
158 | coreconfigitem('worker', 'backgroundclosemaxqueue', | |
159 | default=384, |
|
159 | default=384, | |
160 | ) |
|
160 | ) | |
|
161 | coreconfigitem('worker', 'backgroundcloseminfilecount', | |||
|
162 | default=2048, | |||
|
163 | ) |
@@ -541,8 +541,7 b' class backgroundfilecloser(object):' | |||||
541 | # There is overhead to starting and stopping the background threads. |
|
541 | # There is overhead to starting and stopping the background threads. | |
542 | # Don't do background processing unless the file count is large enough |
|
542 | # Don't do background processing unless the file count is large enough | |
543 | # to justify it. |
|
543 | # to justify it. | |
544 |
minfilecount = ui.configint('worker', 'backgroundcloseminfilecount' |
|
544 | minfilecount = ui.configint('worker', 'backgroundcloseminfilecount') | |
545 | 2048) |
|
|||
546 | # FUTURE dynamically start background threads after minfilecount closes. |
|
545 | # FUTURE dynamically start background threads after minfilecount closes. | |
547 | # (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) | |
548 | if expectedcount > 0 and expectedcount < minfilecount: |
|
547 | if expectedcount > 0 and expectedcount < minfilecount: |
General Comments 0
You need to be logged in to leave comments.
Login now