<p>For a little while we've been using Shrinkray (<a href="https://github.com/DRMacIver/shrinkray" target="_blank" rel="nofollow noopener" translate="no"><span class="invisible">https://</span><span class="">github.com/DRMacIver/shrinkray</span><span class="invisible"></span></a>) for these purposes, and I'm astonished it's not better known. It seems to improve on the older reducers in every way!</p><p>Shrinkray has very sensible rules that apply well to languages it has no specific knowledge of -- we make a *lot* of use of this and it's brilliant! -- and it scales near-linearly to the number of cores. If you need a reducer, I highly recommend it! Thanks <span class="h-card" translate="no"><a href="https://mastodon.social/@DRMacIver" class="u-url mention">@<span>DRMacIver</span></a></span>!</p>