Algorithm-Permute
view release on metacpan or search on metacpan
Algorithm::Permute : 43 wallclock secs ( 42.93 usr + 0.04 sys = 42.97 CPU)
Algorithm::Permute qw(permute): 15 wallclock secs ( 14.82 usr + 0.00 sys = 14.82 CPU)
List::Permutor : 227 wallclock secs (226.46 usr + 0.22 sys = 226.68 CPU)
Memoization : 307 wallclock secs (306.69 usr + 0.43 sys = 307.12 CPU)
perlfaq4 : 272 wallclock secs (271.93 usr + 0.33 sys = 272.26 CPU)
The benchmark script is included in the bench directory. I understand
that speed is not everything. So here is the list of URLs of the
alternatives, in case you hate this module.
* Memoization is discussed in chapter 4 Perl Cookbook, so you can get
it from O'Reilly:
ftp://ftp.oreilly.com/published/oreilly/perl/cookbook
* Abigail's: http://www.foad.org/~abigail/Perl
* List::Permutor: http://www.cpan.org/modules/by-module/List
* The classic way, usually used by Lisp hackers: perldoc perlfaq4
ACKNOWLEDGEMENT
lib/Algorithm/Permute.pm view on Meta::CPAN
perlfaq4 : 272 wallclock secs (271.93 usr + 0.33 sys = 272.26 CPU)
The benchmark script is included in the bench directory. I understand that
speed is not everything. So here is the list of URLs of the alternatives, in
case you hate this module.
=over 4
=item *
Memoization is discussed in chapter 4 Perl Cookbook, so you can get it from
O'Reilly: ftp://ftp.oreilly.com/published/oreilly/perl/cookbook
=item *
Abigail's: http://www.foad.org/~abigail/Perl
=item *
List::Permutor: http://www.cpan.org/modules/by-module/List
( run in 0.468 second using v1.01-cache-2.11-cpan-e9199f4ba4c )