2009/5/11 Matt Brown <[email protected]>:
> When resource caching is enabled in Velocity, and the default cache 
> (ResourceCacheImpl) is used, the default size of the LRU cache used (if not 
> otherwise set) is 89.
>
> Just curious - anyone know how/why the value of 89 was chosen?

IMHO, it could be that 89 is a prime number, and it is a good number
when doing division-based hashes.
http://en.wikipedia.org/wiki/Hash_function#Variable_range

However, I cannot tell why 89 and not another prime number.

Antonio

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to