From: Stephen D. <sd...@gm...> - 2006-07-13 19:44:19
|
On 7/12/06, Andrew Piskorski <at...@pi...> wrote: > On Wed, Jul 12, 2006 at 04:03:37PM -0400, Vlad Seryakov wrote: > > Naviserver does it automatically, it was ported a long time ago > > Awesome, that's good to know. > It doesn't actually... Byte code can only be cached per-interp and our caches are server-wide. Currently, it's just caching the read of the Tcl source from disk. I think the way to go here is to merge Tcl pages in with the ADP page code. What's the difference between an ADP page like this: <% # Entire page is Tcl... %> ...and a *.tcl page under the page root? Nothing, practically. They're both 'ADP pages' with one Tcl chunk. The ADP stuff in aolserver 4.5 has *output* caching. Tcl pages would be able to take advantage of output caching if they were just one-chunk ADP pages. This is on my todo list, but not for a while, so this might make a nice project for someone. Someone needs to write a few tests for the ADP stuff first -- aolserver seems to have broken the ADP stuff during development. A nice small project for someone... |