[mod_python] IPC, db conn sharing, and other fine things

David Fraser davidf at sjsoft.com
Thu Aug 28 09:49:37 EST 2003


Mike Looijmans wrote:

>>For right now I've hacked together a flat file-based caching/registry
>>system using libxml2 and fcntl locking. It's performance will work,
>>though I really miss the speed of an all-in-memory caching/registry
>>system. *sigh* You make do with what you can.
>>    
>>
>
>I think there are some Python shared memory (across processes) libraries,
>they might be worth looking into. You could also write some caching code
>based on shared memory in C and package it into a .so library and load it
>into Python.
>
>The filesystem is not so bad, most of it is cached in memory anyway. Some
>OSses support in-memory files, that might be a nice one too.
>
>Mike.
>
>
>  
>
See the soon-to-be released mod_python 3.1 alpha for mod_python support 
for shared memory.
That's a much easier route than trying to sort it all out yourself...

David



More information about the Mod_python mailing list