[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#20725: Shuf problem
From: |
Pádraig Brady |
Subject: |
bug#20725: Shuf problem |
Date: |
Wed, 03 Jun 2015 15:34:50 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 |
tag 20725 wontfix
close 20725
stop
On 03/06/15 14:40, Federico Alves wrote:
> Dear Padraig
> I think this is exactly the case. Please consider a very large file. It would
> be very inefficient to use sed first, and the shuf. A simple switch in shuf
> would be way better.
> It should be ON ny default, I believe.
For a large file shuf will use reservoir sampling as it does for pipes,
and so there should not be significant differences in the base
operation on files and pipes. Also shuffling a large file containing
blank lines seems like a slightly unusual case, and thus not worth
complicating the interface with another option for.
thanks,
Pádraig.