Costin Manolache wrote:
I kind of liked ThreadWithAttributes :-), but I don't think it's
needed any more.
However, I think if we stop using it in some cases, we should completely
remove
it, otherwise it's going to be messy.
ThreadWithAttributes was required long ago when we had JDK1.1 ( no
ThreadLocal )
and with the early implementations of ThreadLocal. I haven't tested, but
I hope
ThreadLocal is now optimized enough - i.e. I assume behaves just like
ThreadWithAttributes, accessing a 'local' data instead of the
hashtable lookup by thread.
Yes, TWA was a good idea at the time. I looked quickly at where it is
used now, and it seems for monitoring RequestInfo is also used. So it is
possible to remove it.
TheeadLocals are apparently reasonably fast right now. I switched to
them earlier (for the code that retrieves the processor), and it seems ok.
Rémy
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]