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
Pearson(3) User Contributed Perl Documentation Pearson(3)

Digest::Pearson - Perl interface to Pearson hash

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

Digest::Pearson 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.

use Digest::Pearson qw(pearson);

Digest::Pearson::pearson($string)

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

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

If you find any inaccurate or missing information, please send your comments to tnguyen@cpan.org. Your effort is certainly appreciated!
2005-03-28 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

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