[jbosscache-dev] Caching log.isTraceEnabled() as instance variable
Manik Surtani
manik at jboss.org
Tue Jul 8 13:43:41 EDT 2008
On 8 Jul 2008, at 18:41, Galder Zamarreno wrote:
> By the way, with the email below, I'm assuming that there's a least
> a few of the CommandInterceptor instances that are created at
> runtime and the same instance is used throughout all cache lifespan.
>
> I dunno whether any of this CommandInterceptor instances are created
> on a per invocation basis. If they are, they can safely cache
> log.isTraceEnabled() as the duration of the CommandInterceptor
> instance is short. I doubt this is the case though.
CommandInterceptors are constructed at build time. It is a finite set
based on the cfg used, anywhere between 4 and 10 interceptors.
Cheers
--
Manik Surtani
Lead, JBoss Cache
manik at jboss.org
More information about the jbosscache-dev
mailing list