It was benchmarked against the same thing done using a Schwartzian Transform for directories of various number of files up to 10,000. In all test it outperformed the ST (go figure). The performance was only measured in time to complete the check, no check for system impact was done while each was running.
Anyone interested in the bencmark code and results, just /msg me.
#!/usr/bin/perl -w use strict; printf "%s\n", (sort{ (-M $b) <=> (-M $a) } glob("*"));
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Print the oldest file in a directory.
by Aristotle (Chancellor) on Oct 31, 2002 at 18:50 UTC | |
|
•Re: Print the oldest file in a directory.
by merlyn (Sage) on Oct 30, 2002 at 20:21 UTC | |
by gnu@perl (Pilgrim) on Oct 30, 2002 at 21:08 UTC | |
by merlyn (Sage) on Oct 31, 2002 at 03:41 UTC | |
by gnu@perl (Pilgrim) on Oct 31, 2002 at 16:02 UTC | |
by runrig (Abbot) on Oct 31, 2002 at 00:46 UTC | |
|
Re: Print the oldest file in a directory.
by princepawn (Parson) on Oct 30, 2002 at 19:57 UTC |