Mark, there are a couple of things that our caches need:

(1) eviction (can't keep the wholetable in memory)
(2) support for arbitrary (complex) data types as keys 

I don't think Hibernate uses integer values as map keys anywhere.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mark
Proctor
Sent: Friday, 12 August 2005 5:27 PM
To: hibernate-devel@lists.sourceforge.net
Subject: [Hibernate] primitive long map

I have been using hibernate annotations and have to say I'm thorougly
impressed. Don't know what hibernate implements for its caching but I've
written an ultra light weight and stunted Map like implementation for
our object cache lookup in Drools. I blogged it when I first wrote it,
with benchmarks against other similar implementations, and its received
several updates since. It uses a fraction of the memory of other systems
and is faster in every situation.

http://blogs.codehaus.org/people/mproctor/archives/000890_primitive_map_
implementation_and_benchmark_comparisons.html
http://cvs.drools.codehaus.org/viewrep/drools/drools/drools-core-3.0/src
/main/org/drools/util/PrimitiveLongMap.java?r=HEAD

Its only useful for int/long lookups, but feel free to rip if you find
it useful.

Mark




-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle
Practices Agile & Plan-Driven Development * Managing Projects & Teams *
Testing & QA Security * Process Improvement & Measurement *
http://www.sqe.com/bsce5sf
_______________________________________________
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel

Reply via email to