Message280615
Thanks, Danny. Uploaded a version of the patch that adds thread-safety (with a test). Unlike in your lib, I didn't make it a separate version of the decorator; since the lock is not checked on cached access, its slight overhead on the initial computation is probably not an issue, likely outweighed by the cost of the computation itself.
If someone decides to pursue a C version with slots support, hopefully at least these tests are still useful :-) |
|
Date |
User |
Action |
Args |
2016-11-11 21:52:12 | carljm | set | recipients:
+ carljm, rhettinger, ncoghlan, pitrou, vstinner, pydanny, eric.araujo, alex, r.david.murray, serhiy.storchaka, madison.may, Omer.Katz |
2016-11-11 21:52:12 | carljm | set | messageid: <1478901132.36.0.308733133386.issue21145@psf.upfronthosting.co.za> |
2016-11-11 21:52:12 | carljm | link | issue21145 messages |
2016-11-11 21:52:12 | carljm | create | |
|