2009/9/24 Ulrik Mikaelsson <[email protected]>: > Hi, > Is it possible to activate python optimisation in a single daemon process of > mod_wsgi? > Basically, I would assume it should be able to be activated for just that > python interpreter running in that process, and avoid problems relating to > optimising other python-apps in the httpd-container? > Can this be done / will this be done?
The Python main interpreter is normally initialised in Apache parent process once. All processes are then a fork of that process. Optimisation is defined at that time and so cannot define optimisation level for specific daemon process groups. In mod_wsgi 3.0 there is a way of deferring Python main interpreter initialisation until after the fork, but no way of control optimisation individually. Overall I don't believe enabling optimisation buys you much. First reason is that application is persistent, so no gain from .pyo file loading times. Thus comes done to code execution optimisations and unless you have quite specific code which benefits from that, wouldn't expect any significant difference in performance as a result of it. Graham --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "modwsgi" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/modwsgi?hl=en -~----------~----~----~----~------~----~------~--~---
