Algorithm-HyperLogLog

 view release on metacpan or  search on metacpan

Changes  view on Meta::CPAN

Revision history for Algorithm::HyperLogLog

0.24 2017-06-22T17:47:05Z
    - Update Build.PL for perl-5.26

0.23 2014-05-12T16:58:51Z
    - Add new method 'Algorithm::HyperLogLog::merge()'
        (dgryski)

0.22 2013-06-25T22:54:20Z
    - Fixed broken test

0.21 2013-06-25T17:42:09Z

META.json  view on Meta::CPAN

            "Carp" : "0",
            "Digest::MurmurHash3::PurePerl" : "0.02",
            "XSLoader" : "0",
            "perl" : "5.008008"
         }
      }
   },
   "provides" : {
      "Algorithm::HyperLogLog" : {
         "file" : "lib/Algorithm/HyperLogLog.pm",
         "version" : "0.24"
      },
      "Algorithm::HyperLogLog::PP" : {
         "file" : "lib/Algorithm/HyperLogLog/PP.pm",
         "version" : "0.24"
      }
   },
   "release_status" : "stable",
   "resources" : {
      "bugtracker" : {
         "web" : "https://github.com/hideo55/p5-Algorithm-HyperLogLog/issues"
      },
      "homepage" : "https://github.com/hideo55/p5-Algorithm-HyperLogLog",
      "repository" : {
         "url" : "git://github.com/hideo55/p5-Algorithm-HyperLogLog.git",
         "web" : "https://github.com/hideo55/p5-Algorithm-HyperLogLog"
      }
   },
   "version" : "0.24",
   "x_contributors" : [
      "Damian Gryski <damian@gryski.com>",
      "hideo55 <hide.o.j55@gmail.com>"
   ]
}

META.yml  view on Meta::CPAN

    - xt
    - inc
    - share
    - eg
    - examples
    - author
    - builder
provides:
  Algorithm::HyperLogLog:
    file: lib/Algorithm/HyperLogLog.pm
    version: '0.24'
  Algorithm::HyperLogLog::PP:
    file: lib/Algorithm/HyperLogLog/PP.pm
    version: '0.24'
requires:
  Carp: '0'
  Digest::MurmurHash3::PurePerl: '0.02'
  XSLoader: '0'
  perl: '5.008008'
resources:
  bugtracker: https://github.com/hideo55/p5-Algorithm-HyperLogLog/issues
  homepage: https://github.com/hideo55/p5-Algorithm-HyperLogLog
  repository: git://github.com/hideo55/p5-Algorithm-HyperLogLog.git
version: '0.24'
x_contributors:
  - 'Damian Gryski <damian@gryski.com>'
  - 'hideo55 <hide.o.j55@gmail.com>'

lib/Algorithm/HyperLogLog.pm  view on Meta::CPAN

package Algorithm::HyperLogLog;
use strict;
use warnings;
use 5.008008;
use Carp qw(croak);

our $VERSION = '0.24';

our $PERL_ONLY;
if ( !defined $PERL_ONLY ) {
    $PERL_ONLY = $ENV{PERL_HLL_PUREPERL} ? 1 : 0;
}

if ( !exists $INC{'Algorithm/HyperLogLog/PP.pm'} ) {
    if ( !$PERL_ONLY ) {
        require XSLoader;
        $PERL_ONLY = !eval { XSLoader::load( __PACKAGE__, $VERSION ); };

lib/Algorithm/HyperLogLog/PP.pm  view on Meta::CPAN

use warnings;
use 5.008008;
use Carp ();
use Digest::MurmurHash3::PurePerl qw(murmur32);
use constant {
    HLL_HASH_SEED => 313,
    TWO_32        => 4294967296.0,
    NEG_TWO_32    => -4294967296.0,
};

our $VERSION = "0.24";

require Algorithm::HyperLogLog;

{

    package Algorithm::HyperLogLog;
    our @ISA = qw(Algorithm::HyperLogLog::PP);
}

sub new {



( run in 0.480 second using v1.01-cache-2.11-cpan-7add2cbd662 )