Message216330
The performance is still an issue in python 3.
Attaching a patch for python 3, performance numbers are below.
Measuring ndbm time for a falsey check on an open db with 100 entries. gdbm performance is similar.
Before patch:
db is not None: 6.9141387939453125e-06
not db: 0.0006985664367675781
Factor: 101X (slow)
After patch:
db is not None: 4.76837158203125e-06
not db: 4.0531158447265625e-06
Factor: 1X (expected)
Also, added a couple tests to verify bool(db) returns the correct value. |
|
Date |
User |
Action |
Args |
2014-04-15 16:33:15 | eolson | set | recipients:
+ eolson, jafo, jcea, johansen, ysj.ray |
2014-04-15 16:33:15 | eolson | set | messageid: <1397579595.2.0.061253514336.issue2159@psf.upfronthosting.co.za> |
2014-04-15 16:33:15 | eolson | link | issue2159 messages |
2014-04-15 16:33:14 | eolson | create | |
|