Re: Thread-safety of Commons-Codec Encoder

2012-05-03 Thread sebb
On 3 May 2012 19:30, Julius Davies wrote: >> So if we agree that the Encoders that exist are thread-safe (as we've >> defined it) and that they should be in general, then I plan to treat them >> that way in Lucene. > > > I guess you're saying you'll do this: > > Pattern #1:  save some memory, lo

Re: Thread-safety of Commons-Codec Encoder

2012-05-03 Thread David Smiley (@MITRE.org)
ere. > ~ David ----- Author: http://www.packtpub.com/apache-solr-3-enterprise-search-server/book -- View this message in context: http://apache-commons.680414.n4.nabble.com/Thread-safety-of-Commons-Codec-Encoder-tp4600956p4606799.html Sent from the Commons - User mailing list archive at Nabble.com.

Re: Thread-safety of Commons-Codec Encoder

2012-05-03 Thread Julius Davies
> So if we agree that the Encoders that exist are thread-safe (as we've defined > it) and that they should be in general, then I plan to treat them that way in > Lucene. I guess you're saying you'll do this: Pattern #1: save some memory, lose some thread safety --- public class MyClass { pr

Re: Thread-safety of Commons-Codec Encoder

2012-05-02 Thread David Smiley (@MITRE.org)
t them that way in Lucene. ~ David - Author: http://www.packtpub.com/apache-solr-3-enterprise-search-server/book -- View this message in context: http://apache-commons.680414.n4.nabble.com/Thread-safety-of-Commons-Codec-Encoder-tp4600956p4604487.html Sent from the Commons - User mailing list archive at Nabble.com.

Re: Thread-safety of Commons-Codec Encoder

2012-05-02 Thread sebb
stuff is "Java Concurrency In Practice" by > Brian Goetz. Yes, I've read it. > ~ David > > - >  Author: http://www.packtpub.com/apache-solr-3-enterprise-search-server/book > -- > View this message in context: > http://apache-commons.680414.n4.nabble.com/

Re: Thread-safety of Commons-Codec Encoder

2012-05-02 Thread David Smiley (@MITRE.org)
a good book on this tricky stuff is "Java Concurrency In Practice" by Brian Goetz. ~ David - Author: http://www.packtpub.com/apache-solr-3-enterprise-search-server/book -- View this message in context: http://apache-commons.680414.n4.nabble.com/Thread-safety-of-Commons-Codec-Encod

Re: Thread-safety of Commons-Codec Encoder

2012-05-02 Thread sebb
On 2 May 2012 19:18, Thomas Neidhart wrote: > On 05/01/2012 05:23 PM, David Smiley (@MITRE.org) wrote: >> I am reviewing Apache Lucene's use of Commons-Codec phonetic Encoders for >> thread-safety.  Unfortunately, there is barely any mention about >> thread-safety in the javadocs.  I think that's

Re: Thread-safety of Commons-Codec Encoder

2012-05-02 Thread Thomas Neidhart
On 05/01/2012 05:23 PM, David Smiley (@MITRE.org) wrote: > I am reviewing Apache Lucene's use of Commons-Codec phonetic Encoders for > thread-safety. Unfortunately, there is barely any mention about > thread-safety in the javadocs. I think that's a real problem. I noticed > this old JIRA issue w

Thread-safety of Commons-Codec Encoder

2012-05-01 Thread David Smiley (@MITRE.org)
nabble.com/Thread-safety-of-Commons-Codec-Encoder-tp4600956.html Sent from the Commons - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-ma