logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Raymond DeCampo <rdeca...@twcny.rr.com>
Subject Re: cvs commit: jakarta-log4j/src/java/org/apache/log4j/spi LoggingEvent.java
Date Fri, 05 Dec 2003 02:19:42 GMT
Paul Smith wrote:
>>The hashcode computation must be fast in itself, at least significantly 
>>faster than 'equals' method invocations which return false.
>>
>>I think that String.hashcode computation is kinda slow depending on the JDK 
>>because it iterates on ALL the characters of the String.
> 
> 
> Mmmmm.  Yes, I think you've sold me.
> 
> Paul
> 

I still think that Paul's original point is valid.  A millisecond is a 
long time on a computer these days.

What about using the first few characters of the message?

Ray


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-dev-help@jakarta.apache.org


Mime
View raw message