ThreadLocal gets are about twice as slow as a HashMap lookups with JDK 1.3.1_05. With JDK 1.4.1_01 the gets are actually faster than HashMap lookups. In either case you are talking about sub-nanosecond times on a 1.8GHz cpu.
xxxxxxxxxxxxxxxxxxxxxxxx Scott Stark Chief Technology Officer JBoss Group, LLC xxxxxxxxxxxxxxxxxxxxxxxx ----- Original Message ----- From: "David Jencks" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, November 27, 2002 6:52 AM Subject: Re: [JBoss-dev] 3 Transactions? > On 2002.12.27 04:58:08 -0500 Hiram Chirino wrote: > > David, > > > > Is a ThreadLocal lookup more expensive than a hashmap lookup?? > > I don't know, I thought I read that it was considerably slower, but I've > never tested. > > david ------------------------------------------------------- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
