Archive of UserLand's first discussion group, started October 5, 1998.
Making Frontier faster by caching html code
Author: Tommy Sundström Posted: 5/25/1999; 3:23:11 PM Topic: Making Frontier faster by caching html code Msg #: 6689 Prev/Next: 6688 / 6690
I just got this idea on how to make Frontier dynamic rendering run faster.There's a lot of work done every time a page is accessed. Height & width is pulled out of images, macros i patching together the template framework,
is created etc etc. A large part of this is recreating exactly the same code over and over again.It should be possible to cache this code, and gain speed.
For this to work, we need a way to cache parts of a page (if the entire page remains the same we already has a caching scheeme: render to static pages).
Maybe it can be done like this:
- We tag every part that we want to cache with something like
...
(the cached part must contain macros, otherwise there is nothing gained)- In pageFilter we check every cacheid and see if we have anything stored for it.
If we have, we substitute that for the... .
We save a list of the id:s that did not have anything cached.- In finalFilder we take that list and extracts the
... -contents for those chacheid:s and store them.Things needed:
- Extract and substitute rutines that are fast (Regex?)
- Verbs to delete the cache & the removes items from the 'put in cache with finalFilter'-list (to be used by macros and scripts that wants to make a change to the contents of a
... )- Maybe we also need verbs to handle caching on a more fine-grained level than that of pageFilter/finalFilter.
There are responses to this message:
- Re: Making Frontier faster by caching html code, Oliver Wrede, 5/25/1999; 5:10:33 PM
- Re: Making Frontier faster by caching html code, Oliver Wrede, 5/25/1999; 5:10:46 PM
- Re: Making Frontier faster by caching html code, Lixian B. Chiu, 5/26/1999; 7:36:09 AM
- Re: Making Frontier faster by caching html code, James Spahr, 5/26/1999; 7:44:16 AM
This page was archived on 6/13/2001; 4:50:25 PM.
© Copyright 1998-2001 UserLand Software, Inc.