Skip to content

Commit e2e2ec5

Browse files
committed
noop
1 parent 52217f3 commit e2e2ec5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Objects/listobject.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1837,7 +1837,7 @@ binarysort(MergeState *ms, const sortslice *ss, Py_ssize_t n, Py_ssize_t ok)
18371837
}
18381838

18391839
std += labs(aL - mu);
1840-
std /= 2;
1840+
std /= 2; // EWMA with alpha=0.5
18411841
mu = aL;
18421842
}
18431843

@@ -1916,7 +1916,7 @@ binarysort(MergeState *ms, const sortslice *ss, Py_ssize_t n, Py_ssize_t ok)
19161916
}
19171917

19181918
std += labs(aL - mu);
1919-
std /= 2;
1919+
std /= 2; // EWMA with alpha=0.5
19201920
std_max += !(ok % 4);
19211921
mu = aL;
19221922
}

0 commit comments

Comments
 (0)