Python does not play well with others

Paul Rubin http
Tue Feb 6 16:27:35 EST 2007


"sjdevnull at yahoo.com" <sjdevnull at yahoo.com> writes:
> In our case, the issue is this: we load a ton of info at server
> restart, from the database.  Some of it gets processed a bit based on
> configuration files and so forth.  If this were done in my own C
> server, I'd do all of that and set up the (read-only) runtime data
> structures prior to forking.  That would mean that:
> a) The processing time would be lower since you're just doing the pre-
> processing once; and
> b) The memory footprint could be lower if large data structures were
> created prior to fork; they'd be in shared copy-on-write pages.

If you completely control the server, write an apache module that
dumps this data into a file on startup, then mmap it into your Python app.



More information about the Python-list mailing list