On 07/09/2011 19:49, Konstantin Kolinko wrote: > 2011/9/7 <ma...@apache.org>: >> Author: markt >> Date: Wed Sep 7 18:11:20 2011 >> New Revision: 1166290 >> >> URL: http://svn.apache.org/viewvc?rev=1166290&view=rev >> Log: >> Add a simple annotation cache to improve performance for applications that >> use lots of non-poolable tags. > > 1. I think most classes do not have annotations. If I understand > correctly the code allocates new ArrayList() for each class. Maybe we > can optimize for classes that do not have annotations? > (E.g. using a shared instance of Collections.emptyList()).
That would be simple to do. > 2. I wonder when the cache is cleared. E.g. if we are in development > mode or have enabled unloading unused JSPs in JspServlet > configuration. If I understand correctly it accumulates references to > Class objects but never releases them. When the context is stopped. Mark --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org