[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [patch #3596] Sort directories before files in "ls"
From: |
Alfred M\. Szmidt |
Subject: |
Re: [patch #3596] Sort directories before files in "ls" |
Date: |
Thu, 22 Dec 2005 21:43:48 +0100 |
> EVIL. You are calling qsort twice for every element (once to
> put directories first, then twice again on the subsets). This
> is twice as slow as just writing a proper sort function that
> does everything all in one comparison, so that you only call
> qsort once.
I agree with Eric.
- Re: [patch #3596] Sort directories before files in "ls", (continued)
- Re: [patch #3596] Sort directories before files in "ls", Francesco Montorsi, 2005/12/21
- Re: [patch #3596] Sort directories before files in "ls", Alfred M\. Szmidt, 2005/12/21
- Re: [patch #3596] Sort directories before files in "ls", Francesco Montorsi, 2005/12/22
- Re: [patch #3596] Sort directories before files in "ls", Eric Blake, 2005/12/22
- Re: [patch #3596] Sort directories before files in "ls", Francesco Montorsi, 2005/12/27
- Use of bison, Eric Blake, 2005/12/29
- Re: Use of bison, Francesco Montorsi, 2005/12/29
- Re: Use of bison, Paul Eggert, 2005/12/29
- Re: [patch #3596] Sort directories before files in "ls", Eric Blake, 2005/12/29
- Re: [patch #3596] Sort directories before files in "ls", Francesco Montorsi, 2005/12/29
- Re: [patch #3596] Sort directories before files in "ls",
Alfred M\. Szmidt <=
- [patch #3596] Sort directories before files in "ls", Francesco Montorsi, 2005/12/27