move the outer if.
RE>> Also look at:
RE>> http://www.javaworld.com/javaworld/jw-11-2001/jw-1116-dcl.html
RE>> (This article also states that ThreadLocal works even slower
RE>> before JDK 1.4)
>>> -Original Message-
>>> From: Jacob Kjome [mailto
ThreadLocal works even slower
RE> before JDK 1.4)
>> -Original Message-
>> From: Jacob Kjome [mailto:hoju@;visi.com]
>> Sent: Tuesday, October 29, 2002 5:12 AM
>> To: Tomcat Users List
>> Cc: Craig R. McClanahan
>> Subject: Re[2]: DBCP speed of lookup
ent: Tuesday, October 29, 2002 5:12 AM
> To: Tomcat Users List
> Cc: Craig R. McClanahan
> Subject: Re[2]: DBCP speed of lookup -vs- stored reference to
> Datasource?
>
> I was just making an attempt to avoid the
> Double-Checked Locking issue and the article
&
;,
> Jacob Kjome <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: Re[2]: DBCP speed of lookup -vs- stored reference to Datasource?
>
> Hello Craig,
>
> seem comments inline below
>
> Monday, October 28, 2002, 12:14:05 PM, you wrote
8:08:09 -0600
> >> From: Jacob Kjome <[EMAIL PROTECTED]>
> >> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> >> To: Tomcat Users List <[EMAIL PROTECTED]>
> >> Subject: DBCP speed of lookup -vs- stored reference to Datasource?
> >>
>
ROTECTED]>
>> To: Tomcat Users List <[EMAIL PROTECTED]>
>> Subject: DBCP speed of lookup -vs- stored reference to Datasource?
>>
>>
>> I'm wondering what kind of performance penalty there is, if any, when doing
>> a full lookup of the Datasource object
On Mon, 28 Oct 2002, Jacob Kjome wrote:
> Date: Mon, 28 Oct 2002 08:08:09 -0600
> From: Jacob Kjome <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: DBCP speed of lookup -vs- stored r
http://www.javaworld.com/javaworld/javaqa/2002-04/01-qa-0412-doublelock.html
> -Original Message-
> From: Jacob Kjome [mailto:hoju@;visi.com]
> Sent: Monday, October 28, 2002 3:08 PM
> To: Tomcat Users List
> Subject: DBCP speed of lookup -vs- stored reference to Datasource?
>
>
I'm wondering what kind of performance penalty there is, if any, when doing
a full lookup of the Datasource object each and every time through JNDI
calls? Basically, does it make sense to do one lookup and store a local
copy for future use? The one problem I see with doing that is that if one