GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  DIGEST::PEARSON (3)

.ds Aq ’

NAME

Digest::Pearson - Perl interface to Pearson hash

CONTENTS

SYNOPSIS



  use Digest::Pearson qw(pearson);
 
  my $hash = pearson("abcdef012345");  # 0 <= $hash < 256



DESCRIPTION

<B>Digest::PearsonB> is an implementation of Peter K. Pearson’s hash algorithm presented in Fast Hashing of Variable Length Text Strings - ACM 1990. This hashing technique yields good distribution of hashed results for variable length input strings on the range 0-255, and thus, it is well suited for data load balancing.

The implementation is in C, so it is fast. If you prefer a pure Perl version and can tolerate slower speed, you might want to consider Digest::Pearson::PurePerl instead.

This module does not export anything by default. To use this hash function, do either of the following.

<B>use Digest::Pearson qw(pearson);B>

<B>Digest::Pearson::pearson($string)B>

ACKNOWLEDGEMENTS

The implementation is derived from RFC 3074 - DHC Load Balancing Algorithm.

SEE ALSO

Digest::FNV, Digest::DJB, Digest::Pearson::PurePerl.

BUGS

If you find any inaccurate or missing information, please send your comments to tnguyen@cpan.org. Your effort is certainly appreciated!
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 PEARSON (3) 2005-03-28

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.