> > I haven't tried your patch, but it sounds like it'd do the trick. > It does indeed, even with a 1GB long line. > > You could also use Fbuffer_line_statistics here, which I think should be > faster. > Thanks, this simplifies the patch a bit, see attached.