persistant web state

Skip Montanaro skip at pobox.com
Tue May 20 13:18:10 EDT 2003


    >> Couldn't you pickle the data you write to shared memory?

    Max> I thought of that, but it is not necessarily efficient to
    Max> pickle/unpicke.

Before we go any further down this path, I should point out that the OP
asked:

    Jay> I'm lloking for a technique to allow me to keep memory alive
    Jay> between invocations of a cgi program.

Instead of responding, "how about mmap?", I should have responded, "can you
tell us a little more about your motivation?".  Jay was (I think) couching
his question (what he wanted to accomplish) in terms of a previous solution
(how he did it previously in Smalltalk).  Starting with the "what" instead
of starting with the "how" might have led more directly to talk of
technologies like Zope, Webware or mod_python instead of what is almost
certainly going to be a dead end (shared memory).

My apologies...

Skip





More information about the Python-list mailing list