Uploaded image for project: 'Motor'
  1. Motor
  2. MOTOR-112

Is a thread pool more performant than greenlets?

    XMLWordPrintable

    Details

    • Type: Question
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 0.7
    • Component/s: None
    • Labels:
      None
    • Sprint:
      C Driver 2016 sprint 7

      Description

      Based on:

      https://emptysqua.re/blog/response-to-asynchronous-python-and-databases/

      ... Motor might perform better under the expected common cases if it uses a thread pool instead of greenlets. Plus the implementation will be dramatically simplified, and porting to PyMongo 3 (MOTOR-87) will be a cinch.

      PyMongo 3.x can drop the hooks for Motor: _event_class, _monitor_class, and _pool_class.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: