Is a thread pool more performant than greenlets?

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • Priority: Major - P3
    • 0.7
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

              Assignee:
              A. Jesse Jiryu Davis
              Reporter:
              A. Jesse Jiryu Davis
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: