logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ceki Gülcü <c...@qos.ch>
Subject LRU-Indentity-HashMap
Date Wed, 27 Oct 2004 15:46:35 GMT

Hello all,

In addressing bug #6229 [1], it transpired that we needed a bounded
hash map using LRU heuristics and identity to compute hashmap and
object references for equality. Basically, it would be a HashMap
merging the qualities of a LRUMap [2] and those of IdentityHashMap [3,
4, 5].

This HashMap will serve as a cache of previously parsed logging
messages of type java.lang.String. String has rather slow equals and
hash methods, hence the need for an IdentityMap. We need to keep the
memory footprint of the cache limited, hence the requirement for the
LRU heuristics.

It's a little 2 or 3 day project. If you are interested, please let me

[1] http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16229
[3] http://java.sun.com/j2se/1.4.2/docs/api/java/util/IdentityHashMap.html

ps: Please reply to log4j-dev@logging.apache.org.

Ceki Gülcü

      For log4j documentation consider "The complete log4j manual"

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

View raw message