Set::Product::XS - speed up Set::Product
use Set::Product qw(product); product { say "@_" } [1..10], ['A'..'E'], ['u'..'z'];
The Set::Product::XS module provides a faster XS implementation for Set::Product. It will automatically be used, if available.
Set::Product::XS
Set::Product
product { BLOCK } \@array1, \@array2, ...
Evaluates BLOCK and sets @_ to each tuple in the cartesian product for the list of array references.
BLOCK
This distribution contains a benchmarking script which compares several modules available on CPAN. These are the results on a MacBook 2.6GHz Core i5 (64-bit) with Perl 5.26.1:
Set::CrossProduct 31.17+-0.2/s List::MapMulti 34.16+-0.21/s Algorithm::Loops 86.3+-1.5/s Set::Scalar 138.15+-0.56/s Math::Cartesian::Product 244+-1.8/s Set::Product::PP 306+-3.6/s Set::Product::XS 1066.58+-0.24/s
Please report any bugs or feature requests to http://rt.cpan.org/Public/Bug/Report.html?Queue=Set-Product-XS. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
You can find documentation for this module with the perldoc command.
perldoc Set::Product::XS
You can also look for information at:
GitHub Source Repository
https://github.com/gray/set-product-xs
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Set-Product-XS
CPAN Ratings
http://cpanratings.perl.org/d/Set-Product-XS
RT: CPAN's request tracker
http://rt.cpan.org/Public/Dist/Display.html?Name=Set-Product-XS
Search CPAN
http://search.cpan.org/dist/Set-Product-XS/
Copyright (C) 2015-2017 gray <gray at cpan.org>, all rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
gray, <gray at cpan.org>
To install Set::Product::XS, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Set::Product::XS
CPAN shell
perl -MCPAN -e shell install Set::Product::XS
For more information on module installation, please visit the detailed CPAN module installation guide.