Skip to content

Instantly share code, notes, and snippets.

@jzawodn
Created September 7, 2012 22:42
Show Gist options
  • Save jzawodn/3670388 to your computer and use it in GitHub Desktop.
Save jzawodn/3670388 to your computer and use it in GitHub Desktop.
Testing perl memory use on hash with many short lived keys
#!/usr/bin/perl
use strict;
use warnings;
my $h;
my $i = 0;
while (1) {
$h->{$i} = 1;
delete $h->{$i-1};
$i++;
}
exit;
__END__
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment