491477 messages in 933 lists

Daniel.Sun schrieb:
> Hi all,
> 
> I found more than 90% time is spent in compiling. 
> So I think caching these latest compiled groovy class will improve
> performance a lot.
> The cache pool should be provided with gdk and instance of the pool should
> be store in a Thread which is started when we run our application.
> 
> pseudocode as follows:
> find the requested class from cache.
> if (the class is cached) {
>   if (modifying timestamp of groovy script file  >  modifying timestamp of
> class's groovy script file  which is also in the cache) {
>     recompile the groovy script file and cache it
>   } else {
>     return the requested class
>   }
> } else {
>   compile the groovy script file and cache it
>   return the requested class
> }

that's how it is working, or not?

bye blackdrag

-- 
Jochen "blackdrag" Theodorou
Groovy Tech Lead (http://groovy.codehaus.org)
http://blackdragsview.blogspot.com/
Message Thread
One easy way to improve performance a lot Daniel.Sun (realbluesun@hotmail...)
09 Feb 2007
Re: [groovy-jsr] One easy way to improve performance a lot Jochen Theodorou (blackdrag@gmx...)
12 Feb 2007
Re: [groovy-jsr] One easy way to improve performance a lot Daniel.Sun (realbluesun@hotmail...)
13 Feb 2007
Copyright 2006-2008 The Codehaus Foundation
Powered by Codehaus March (Version: 0.1-HEAD)