Submitter | Yuya Nishihara |
---|---|
Date | March 3, 2018, 1:27 p.m. |
Message ID | <87b0df6c39fff3ac758a.1520083659@mimosa> |
Download | mbox | patch |
Permalink | /patch/28771/ |
State | Accepted |
Headers | show |
Comments
Patch
diff --git a/mercurial/dirstate.py b/mercurial/dirstate.py --- a/mercurial/dirstate.py +++ b/mercurial/dirstate.py @@ -1431,7 +1431,7 @@ class dirstatemap(object): # This heuristic is imperfect in many ways, so in a future dirstate # format update it makes sense to just record the number of entries # on write. - self._map = parsers.dict_new_presized(len(st) / 71) + self._map = parsers.dict_new_presized(len(st) // 71) # Python's garbage collector triggers a GC each time a certain number # of container objects (the number being defined by