Help for this page

Select Code to Download


  1. or download this
    sub clear_cache {
      my @ids = sort {$count{$b} <=> $count{$a}} keys %count;
    ...
      @count{keys %cache} = (0) x $reset_size;
      $size = $reset_size;
    }
    
  2. or download this
    my $do_shift = 0;
    sub get_elem {
    ...
        $count{$id} >>= 1;
      }
    }