Hi
Did you take into account, the fact that hash-tables LOVE 'Prime-numbers' as a /capacity-high/...?!?
Maybe the quick one is a prime and the slow one isn't...

Also, there's 'LGenerics' library which can be found on 'Github' and the /not-generics/ one to be found in 'contnrs' unit...
By the way, see if you can buy/lend a copy of Julian Bucknall's excellent book: "Tomes of Delphi - Algorithms and Data-structures", great stuff in there, about hashing amo.
Regards Benny