in reply to Advice for optimizing lookup speed in gigantic hashes
Use Devel::NYTProf to find where your script actually spends its time.