[PATCH] sort: parallel external sort implementation

2010-03-03 Thread Joey Degges
Hello, Matt (cc'd, not on list) and I have developed a patch that parallelizes sort using pthreads. The threading approach taken here is to break up input files into groups based on physical device and sort each of those groups in parallel. This allows for storage and processing resources to be mo

a different approach to autocompletion

2010-03-03 Thread Martin Walch
Hello list, sorry if this is not the appropriate place for the following suggestion, but I do not which place would be bette. I think autocompletion in shells (that is usually triggered with tab) is a great feature which I do not want to miss. However, over the years, I have seen several autoc

Re: [Fedora-livecd-list] LANGUAGE trumps LC_ALL

2010-03-03 Thread Jim Meyering
Mads Kiilerich wrote: > Regarding >> user:Jim Meyering >> date:Wed Dec 16 13:46:07 2009 -0500 >> files: tools/livecd-iso-to-disk.sh >> description: >> livecd-iso-to-disk.sh: use LC_ALL=C, not LANG=C, since LC_ALL trumps >> all other envvars, including LANG. For example, >>

Re: side-effect implementing the mv command

2010-03-03 Thread Eric Blake
[please keep replies on the list, so that others may chime in] According to Derick Centeno on 3/2/2010 5:50 PM: >> I'm not quite sure what you saw or what you are asking. If this is still >> an issue for you, could you post more context, such as some 'ls -l *.so' >> listings in both the source an

Re: [PATCH] sort -V now ignores leading white spaces

2010-03-03 Thread Kamil Dudka
Hi Pádraig, On Wed March 3 2010 14:45:50 Pádraig Brady wrote: > Also if your input is like this can one > just specify the -b flag globally or for the key? you're right. The option -b solves the problem fairly well. The patch is pointless. I've just taken the code from -n/-h because I hadn't

Re: [PATCH] sort -V now ignores leading white spaces

2010-03-03 Thread Pádraig Brady
On 03/03/10 13:40, Kamil Dudka wrote: Hello, please consider the attached patch, improving sort -V to ignore leading white spaces. The patch makes it possible to sort strings mixed with numbers. A simple test case has been merged directly into tests/misc/sort-version. Is this common? What's

[PATCH] sort -V now ignores leading white spaces

2010-03-03 Thread Kamil Dudka
Hello, please consider the attached patch, improving sort -V to ignore leading white spaces. The patch makes it possible to sort strings mixed with numbers. A simple test case has been merged directly into tests/misc/sort-version. Thanks in advance! Kamil From 5493d92bca31724b9d26d04f87dd3b9

Re: [PATCH] sort: use posix_fadvise to announce access patterns on files opened for reading

2010-03-03 Thread Pádraig Brady
On 03/03/10 11:43, Jim Meyering wrote: Pádraig Brady wrote: On 02/03/10 22:51, Pádraig Brady wrote: I'll apply the patch with SEQUENTIAL enabled, and summarise in a comment the results we've uncovered. I'll push the attached later today, unless there are objections. Nice work. Thanks to bot

Re: [PATCH] sort: use posix_fadvise to announce access patterns on files opened for reading

2010-03-03 Thread Jim Meyering
Pádraig Brady wrote: > On 02/03/10 22:51, Pádraig Brady wrote: >> I'll apply the patch with SEQUENTIAL enabled, >> and summarise in a comment the results we've uncovered. > > I'll push the attached later today, unless there are objections. Nice work. Thanks to both of you! You must have a few sma

Re: [PATCH] sort: use posix_fadvise to announce access patterns on files opened for reading

2010-03-03 Thread Pádraig Brady
On 02/03/10 22:51, Pádraig Brady wrote: I'll apply the patch with SEQUENTIAL enabled, and summarise in a comment the results we've uncovered. I'll push the attached later today, unless there are objections. An some stage, I'll also look to see if the technique would benefit other utils. cheer