Cache objects in memory
For long-running processes (twisted, FastCGI, Standalone, perhaps mod_python) a in memory cache of objects (pages) could be kept.
I got told that this should make no difference, cause the OS will keep a file that is accessed often in file cache. Thats true. But MoinMoin still has to read this file (memcpy) and unpickle or parse it. This time could be saved.
- the caching we use already saves the parsing
- page content is still read per request to read the processing instructions, which could be cached, to save reading the page content.
- the cached python byte code is not saved in the page object
- optimizing in this field won't help much in praxis as we still have much more expensive actions and macros and request processing is already really fast.
I have to admit that I still had no time to look into the code regarding those points.
See Prevayler for object database in-memory
- Huh? Will we switch to jython soon? -- Oliver
There is a python version --Nir