From: Sebastian K. <seb...@mu...> - 2003-01-29 17:28:45
|
Hi Eric, On Wednesday 29 January 2003 01:22, Eric B. Ridge wrote: > Is it really necessary to use org.webmacro.util.Clock (a background > thread) to calculate the timestamp for logging? This seems like > overkill considering WM should only log when your templates are messed > up. It's not like WM's performance is going to drop 2-fold by using > "new Date()" instead. > > Clock is only used in 3 places: o.wm.servlet.ServletLog, > o.wm.util.LogFile, and o.wm.util.LogSource well, that's not true. It's also used in o.w.resource.TimedReloadContext, that limits the amounts of checks, whether a given resource has been modified. Here, the current time (or an approximation) is needed everytime, a template is used, which can be really often. Why exactly do you want to remove it? Because of the extra thread? This should not matter in the bunch of threads servlet engines usually create. And a while ago, I added some methods that terminate the clock-thread when the web-application is stopped. Sebastian |