diff options
author | Raymond Hettinger <rhettinger@users.noreply.github.com> | 2022-01-05 15:39:10 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-05 15:39:10 (GMT) |
commit | 43aac29cbbb8a963a22c334b5b795d1e43417d6b (patch) | |
tree | f8cdea663608c13ba7ae12eac72f4b5c986406ac /Misc/NEWS.d | |
parent | 46e4c257e7c26c813620232135781e6c53fe8d4d (diff) | |
download | cpython-43aac29cbbb8a963a22c334b5b795d1e43417d6b.zip cpython-43aac29cbbb8a963a22c334b5b795d1e43417d6b.tar.gz cpython-43aac29cbbb8a963a22c334b5b795d1e43417d6b.tar.bz2 |
bpo-46257: Convert statistics._ss() to a single pass algorithm (GH-30403)
Diffstat (limited to 'Misc/NEWS.d')
-rw-r--r-- | Misc/NEWS.d/next/Library/2022-01-04-11-04-20.bpo-46257._o2ADe.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2022-01-04-11-04-20.bpo-46257._o2ADe.rst b/Misc/NEWS.d/next/Library/2022-01-04-11-04-20.bpo-46257._o2ADe.rst new file mode 100644 index 0000000..72ae56e --- /dev/null +++ b/Misc/NEWS.d/next/Library/2022-01-04-11-04-20.bpo-46257._o2ADe.rst @@ -0,0 +1,4 @@ +Optimized the mean, variance, and stdev functions in the statistics module. +If the input is an iterator, it is consumed in a single pass rather than +eating memory by conversion to a list. The single pass algorithm is about +twice as fast as the previous two pass code. |