Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I've downloaded from cpan and installed creamyg's Sort::External module, but it does not seem to be working. Here is the behavior:
1. I created a small unsorted list of data to be sorted.
2. I created my own sort subroutine.
3. Ran the sort with the following settings:
my $sortex = Sort::External->new( -mem_threshold => 2**26, -sortsub => $sortscheme, -working_dir => $temp_directory,);
and it properly sorted my data.
4. Reran the sort with -mem-threshold set to 2**20, forcing the use of temp files and the routine went into an endless loop.
It seems that as soon as the disk temporary file are used, the sort gets stuck in a loop.
Thanks,
--Doug Roberts
doug@parrot-farm.net
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Problem with Sort::External 0.16
by tilly (Archbishop) on Jul 12, 2008 at 06:04 UTC | |
by creamygoodness (Curate) on Aug 18, 2008 at 14:36 UTC | |
by Anonymous Monk on Jul 12, 2008 at 13:47 UTC | |
by tilly (Archbishop) on Jul 12, 2008 at 14:05 UTC | |
Re: Problem with Sort::External 0.16
by Anonymous Monk on Jul 12, 2008 at 01:47 UTC | |
by Anonymous Monk on Jul 12, 2008 at 02:28 UTC | |
Re: Problem with Sort::External 0.16
by Khen1950fx (Canon) on Jul 12, 2008 at 05:53 UTC | |
by Anonymous Monk on Jul 12, 2008 at 13:42 UTC | |
by Khen1950fx (Canon) on Jul 12, 2008 at 17:25 UTC |