Merge lp:~jderose/microfiber/thread-safe into lp:microfiber
Proposed by
Jason Gerard DeRose
Status: | Merged |
---|---|
Merged at revision: | 109 |
Proposed branch: | lp:~jderose/microfiber/thread-safe |
Merge into: | lp:microfiber |
Diff against target: |
177 lines (+37/-4) 4 files modified
benchmark_microfiber.py (+3/-1) benchmark_pycouchdb.py (+4/-0) microfiber.py (+9/-2) test_microfiber.py (+21/-1) |
To merge this branch: | bzr merge lp:~jderose/microfiber/thread-safe |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jason Gerard DeRose | Approve | ||
Review via email:
|
Description of the change
Changes:
* New CouchBase.Conn attribute stores the connection class (either HTTPConnection or HTTPSConnection)
* New CouchBase.
* CocuhBase.conn is now a property, which lazily creates the connection instance the first time it's needed in the current thread
* A few tweaks to benchmark_
Note that there is no measurable performance difference between the new thread-safe code and the old code.
To post a comment you must log in.
I'm gonna self-approve as we need this in a hurry for some features we're going to be using at UDS.