tags 22108 wishlist done Thanks for the suggestion and pointer. FYI, your problem is very similar to that described at http://bugs.gnu.org/21665
I'm marking this auto-created issue as "wishlist". A combination of this approach and using mmap may be profitable when input files are too large for available RAM.