> Part of my thinking with the simple auto-squeeze formula, besides just simplifying the code, it this. Raymond claimed that squeezing slows down printing. If measurably true, one way to avoid a slow down would be to use a simple heuristic formula to estimate the number of wrapped lines instead of exactly counting. This would be a separate issue, if needed.
After Raymond opened issue #35196, I checked and found several places where the auto-squeeze code was being inefficient. There's a PR ready with those optimizations attached to that issue (GH-10454). |