1 parent a434343 commit 4f25425Copy full SHA for 4f25425
1 file changed
changelog/14523.improvement.rst
@@ -0,0 +1,7 @@
1
+The assertion comparison helpers and the truncator now hand the
2
+explanation between them as an iterator, so the dispatcher only has to
3
+materialise lines the truncator actually keeps. For the typical small
4
+diff this is a no-op; for the rare case where two large collections
5
+fail to compare, peak memory drops by a few percent because the
6
+millions of lines that would have been built and immediately discarded
7
+are no longer built.
0 commit comments