in reply to Speed up hash initialization loop
write $profEvntVar->{$customProf} only once, assign the ref to a lexical, then deref the lexical each time. You cut 2 lookups to 1 on each line.
In Section
Seekers of Perl Wisdom
in reply to Speed up hash initialization loop