lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Miller <>
Subject Re: [jira] Commented: (LUCENE-1607) String.intern() faster alternative
Date Sun, 19 Apr 2009 19:42:06 GMT
> As soon as all possible fields are in the pool, we're essentially
> readonly.

The problem is, there's no guarantee we will ever reach this point. For example 
suppose you have a server app that spawns a new thread per request. Each 
new thread might have to make all the .intern() calls again because they 
never see anything in the cache. Having said that, I agree that the code 
will still work correctly regardless, and this is a very unlikely scenario 
anyway - for most practical situations this is never going to be an issue.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message