NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
custom sorting (Score:1)
Reply to This
Re:custom sorting (Score:1)
A benchmark of a simple sort on 1000 rows done over 10 million iterations shows a small ( Of course once you start like this, and realize you can create sort libraries you end up by creating complex sorts (like: "sort first by Jan/Feb/Mar order in one column, THEN by numeric order in another") with function composition, which does start to add some overhe
osfameron
(oops) Re:custom sorting (Score:1)
@_arguments last night (though I initially did{$func->($a,$b)}until I read the perlfunc entry about prototyping($$).A benchmark of a simple sort on 1000 rows done over 10 million iterations shows a small (<10%) variation, bizarrely favouring the
@_version despite the extra level of indirection... I think that deciding you can't support custom sorting because using the overhead of@_over$a,$bis too gosfameron