in reply to Optimize my code with Hashes

Without seeing code or something more specific than this, we won't be able to help you. 55k entries aren't much at all, so I think that the problem might be with LDAP? Also, upgrade your perl version, it's ancient.

Replies are listed 'Best First'.
Re^2: Optimize my code with Hashes
by derby (Abbot) on Aug 27, 2008 at 10:06 UTC

    I'd have to agree with AM here ... sounds like you're blaming your hash structure when the LDAP server and/or network latency is your real issue. After upgrading your perl, take a look at Devel::Profile or Devel::NYTProf to try and pinpoint exactly where the code is spending all its time.

    -derby