lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Engels" <>
Subject Why ThreadLocal?
Date Thu, 04 May 2006 16:02:58 GMT
In reviewing the code for bug 436

Why are we using a ThreadLocal for the enumeration at all?

Since terms(), and terms(Term t) return new instances anyway, why not just
have them clone the needed data structures?

Seems like the code could be much simpler and perform just as well.

What am I missing?

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message