commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jörg Schaible <>
Subject Re: Re: [POOL2] Pooling mutable objects
Date Fri, 06 Feb 2015 17:34:35 GMT
Hi William,

William Speirs wrote:

> I'm not sure I understand your comment Mat. From what I can tell, Michael
> made his own hash function. That's fine, but *might* have unexpected
> collision issues. Might not too... I don't know. My guess though is that
> he's not an expert (who is an expert on hash functions?) and might
> unknowingly fall into a trap here.
> For example, commons-lang HashBuilder uses 37 as the "prime" and 17 as the
> initial result... Michael didn't. Maybe he's OK, maybe he's not... but why
> risk it? Why not just use the library and not reinvent the wheel? (Most
> valid reason would be not wanting to pull in a whole library for these two
> functions/classes.)

Maybe because it can be dead-slow?

I use HashCodeBuilder and EqualsBilder for Mock objects only ... for good 


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message