NAME
Set::Product::XS - speed up Set::Product
SYNOPSIS
use Set::Product qw(product);
product { say "@_" } [1..10], ['A'..'E'], ['u'..'z'];
DESCRIPTION
The Set::Product::XS
module provides a faster XS implementation for Set::Scalar
. It will automatically be used, if available.
FUNCTIONS
product
product { BLOCK } \@array1, \@array2, ...
Evaluates BLOCK
and sets @_ to each tuple in the cartesian product for the list of array references.
PERFORMANCE
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.22.0:
Set::Crossproduct 45.1+-0.62/s
List::Gen 63.21+-0.42/s
Algorithm::Loops 72.87+-0.34/s
Set::Scalar 111.75+-0.18/s
Math::Cartesian::Product 201.7+-2.8/s
Set::Product::PP 285.25+-0.12/s
Set::Product::XS 1106.72+-0.52/s
SEE ALSO
REQUESTS AND BUGS
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.
SUPPORT
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
AnnoCPAN: Annotated CPAN documentation
CPAN Ratings
RT: CPAN's request tracker
http://rt.cpan.org/Public/Dist/Display.html?Name=Set-Product-XS
Search CPAN
COPYRIGHT AND LICENSE
Copyright (C) 2015 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.
AUTHOR
gray, <gray at cpan.org>