Uploaded image for project: 'mod_python'
  1. mod_python
  2. MODPYTHON-8

Improve apache.load_module with a two-level locking scheme

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.1.3
    • 3.3.1
    • importer
    • None

    Description

      We should rewrite apache.load_python with a two level locking scheme, in order to reduce thread contention when using the threading MPM.

      I've already implemented something similar for a custom-made publisher system (comparable to Graham's Vampire) ; I've used a thread-safe caching system that I've donated to the Python Cookbook :

      http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/302997

      Maybe this should be experimented in a separate branch, and merged back once we're sure that everything works perfectly ?

      Attachments

        Issue Links

          Activity

            People

              grahamd Graham Phillip Dumpleton
              nlehuen Nicolas Lehuen
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: