Avoid O(N**2) bottleneck in _communicate_(). Fixes #1598181. Backport from rev. 53295.
2 files changed