perl-Algorithm-LUHN_XS - Very Fast XS Version of the original Algorithm::LUHN

Property Value
Distribution ALT Linux Sisyphus
Repository Autoimports i586
Package filename perl-Algorithm-LUHN_XS-1.08-alt1.1.i586.rpm
Package name perl-Algorithm-LUHN_XS
Package version 1.08
Package release alt1.1
Package architecture i586
Package type rpm
Category Development/Perl
Homepage -
License -
Maintainer -
Download size 64.23 KB
Installed size 64.23 KB
This module is an XS version of the original Perl Module Algorithm::LUHN, which
was written by Tim Ayers.  It should work exactly the same, only substantially
faster. The supplied check_digit() routine is 100% compatible with the pure
Perl Algorithm::LUHN module, while the faster check_digit_fast and really fast
check_digit_rff are not.
How much faster? Here's a benchmark, running on a 3.4GHz i7-2600:
`Benchmark: timing 100 iterations'
`Algorithm::LUHN: 69 secs (69.37 usr 0.00 sys)  1.44/s'
`check_digit:      2 secs ( 1.98 usr 0.00 sys) 50.51/s'
`check_digit_fast: 2 secs ( 1.68 usr 0.00 sys) 59.52/s'
`check_digit_rff:  1 secs ( 1.29 usr 0.00 sys) 77.52/s'
So, it's 35x to 53x faster than the original pure Perl module, depending on
how much compatibility with the original module you need.
The rest of the documentation is mostly a copy of the original docs, with some
additions for functions that are new.
This module calculates the Modulus 10 Double Add Double checksum, also known as
the LUHN Formula. This algorithm is used to verify credit card numbers and
Standard & Poor's security identifiers such as CUSIP's and CSIN's.
You can find plenty of information about the algorithm by searching the web for
"modulus 10 double add double".


Package Version Architecture Repository
perl-Algorithm-LUHN_XS-1.08-alt1.1.x86_64.rpm 1.08 x86_64 Autoimports
perl-Algorithm-LUHN_XS - - -


Name Value
/usr/lib/perl5 - - - - - - -
perl( -
rpmlib(PayloadIsLzma) -
rpmlib(SetVersions) -
rtld(GNU_HASH) -


Name Value
perl(Algorithm/ = 1.080
perl-Algorithm-LUHN_XS = 1.08-alt1.1


Type URL
Binary Package perl-Algorithm-LUHN_XS-1.08-alt1.1.i586.rpm
Source Package perl-Algorithm-LUHN_XS-1.08-alt1.1.src.rpm

Install Howto

  1. Add the following line to /etc/apt/sources.list:
    rpm [Sisyphus] i586 autoimports
    rpm [Sisyphus] noarch autoimports
  2. Update the package index:
    # sudo apt-get update
  3. Install perl-Algorithm-LUHN_XS rpm package:
    # sudo apt-get install perl-Algorithm-LUHN_XS



See Also

Package Description
perl-Algorithm-LibLinear-0.19-alt1.1.i586.rpm A Perl binding for LIBLINEAR, a library for classification/regression using linear SVM and logistic
perl-Algorithm-Line-Bresenham-C-0.1-alt4.1.i586.rpm it is a C version Algorithm::Line::Bresenham to speed up a bit
perl-Algorithm-MinPerfHashTwoLevel-0.10-alt1.i586.rpm construct a "two level" minimal perfect hash
perl-Algorithm-NCS-0.04-alt1.1.i586.rpm Fast Perl extension for sequence alignment
perl-Algorithm-PageRank-XS-0.04-alt4.1.i586.rpm A Fast PageRank implementation
perl-Algorithm-Permute-0.16-alt2.1.i586.rpm Handy and fast permutation with object oriented interface
perl-Algorithm-RectanglesContainingDot_XS-0.02-alt4.1.i586.rpm perl module Algorithm-RectanglesContainingDot_XS
perl-Algorithm-SISort-0.14-alt4.1.i586.rpm Select And Insert sorting algorithm
perl-Algorithm-SVM-0.13-alt4.1.i586.rpm Perl bindings for the libsvm Support Vector Machine library
perl-Algorithm-Statistic-0.04-alt3.1.i586.rpm different statistical algorithms library
perl-Algorithm-StringHash-FromCSharp35-XS-0.04-alt4.1.i586.rpm C#'s string Hashing Algorithm in V3.5
perl-Algorithm-TrunkClassifier-1.0.1-alt4.1.i586.rpm Implementation of the Decision Trunk Classifier algorithm
perl-Alien-Editline-0.08-alt1.1.i586.rpm Build and make available Editline (libedit)
perl-Alien-FFCall-0.03-alt1.1.i586.rpm Build and install libffcall
perl-Alien-FFI-0.23-alt1.i586.rpm Build and make available libffi