##// END OF EJS Templates
streamclone: disable the volatile file open handle optimization on Windows...
Matt Harbison -
r53081:e4b242f9 stable
parent child Browse files
Show More
@@ -582,8 +582,10 class VolatileManager:
582 """
582 """
583
583
584 # arbitrarily picked as "it seemed fine" and much higher than the current
584 # arbitrarily picked as "it seemed fine" and much higher than the current
585 # usage.
585 # usage. The Windows value of 2 is actually 1 file open at a time, due to
586 MAX_OPEN = 100
586 # the `flush_count = self.MAX_OPEN // 2` and `self.MAX_OPEN - 1` threshold
587 # for flushing to disk in __call__().
588 MAX_OPEN = 2 if pycompat.iswindows else 100
587
589
588 def __init__(self):
590 def __init__(self):
589 self._counter = 0
591 self._counter = 0
General Comments 0
You need to be logged in to leave comments. Login now