| 1 | #!/usr/bin/perl | ||
| 2 | |||
| 3 | package KiokuDB::LinkChecker::Results; | ||
| 4 | 2 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 2 | ▶ | use Set::Object; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | 2 | ▶ | use namespace::clean -except => 'meta'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | |||
| 10 | # Set::Object of 1 million IDs is roughly 100mb of memory == 100 bytes per ID | ||
| 11 | # no need to scale anything more, if you have that many objects you should | ||
| 12 | # probably write your own tool | ||
| 13 | has [qw(seen root referenced unreferenced missing broken)] => ( | ||
| 14 | isa => "Set::Object", | ||
| 15 | is => "ro", | ||
| 16 | 48 | ▶ | default => sub { Set::Object->new }, |
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||
| 17 | 2 | ); | |
| 18 | |||
| 19 | 2 | __PACKAGE__->meta->make_immutable; | |
| 20 | |||
| 21 | 2 | __PACKAGE__ | |
| 22 | |||
| 23 | __END__ | ||