commit | cbe8813f18da15b239c58e1ba5c236c77872e413 | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Sat Aug 14 22:22:10 2010 +0000 |
committer | Raymond Hettinger <python@rcn.com> | Sat Aug 14 22:22:10 2010 +0000 |
tree | 463b344b616cb54da0fcd14f753840fd5062874c | |
parent | d9e8cc6249c7ff4ceeff3217a7671bee623d88a7 [diff] |
Add locks to make the caches well behaved in multi-threaded code. Store builtins in cell variables to speed-up the common path, reducing the chance of a lock needing to block at all.