Hello Sebb, XMLBeans which is an Apache project under Apache Licence has included it :
- http://massapi.com/source/xmlbeans-2.5.0/src/common/org/apache/xmlbeans/impl/common/ConcurrentReaderHashMap.java.html Couldn't we do the same ? Regards Philippe On Sun, Oct 2, 2011 at 4:29 PM, sebb <[email protected]> wrote: > On 2 October 2011 15:20, Rainer Jung <[email protected]> wrote: > > On 02.10.2011 15:49, sebb wrote: > >> On 1 October 2011 14:33, Philippe Mouawad <[email protected]> > wrote: > >>> A little additional note, > >>> There is an implementation of Concurrent map by doug lea in > concurrent.jar > >>> called ConcurrentReaderHashMap > >>> that has same performance as HashMap in read and a little less on > write. > >>> But performances are much better than ConcurrentHashMap. > >>> So maybe a better alternative but requires concurrent-1.3.4.jar from: > >>> > >>> - > >>> > http://g.oswego.edu/dl/classes/EDU/oswego/cs/dl/util/concurrent/intro.html > >>> > >> > >> That looks interesting, however the licensing is not at all clear to > >> me, and AFAICT we would only want the one class, not the entire jar. > >> > >> So it's quite a lot of extra complication for what is just a local > optimisation. > > > > Concerning license the page says: > > > > "All classes are released to the public domain and may be used for any > > purpose whatsoever without permission or acknowledgment. Portions of the > > CopyOnWriteArrayList and ConcurrentReaderHashMap classes are adapted > > from Sun JDK source code. These are copyright of Sun Microsystems, Inc, > > and are used with their kind permission, as described in this license." > > > > and "this license" is another link to a PDF. > > > > Legal has already resolved that one: > > > > http://www.apache.org/legal/resolved.html#concurrent > > Thanks! Very useful. > > That would allow us to use the class as part of the concurrent library. > However, we cannot use that particular source file, because it is one > of the Sun-licensed ones. > Not sure if there is any other way to include just the class that we need. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > -- Cordialement. Philippe Mouawad.
