[Checkins] [zopefoundation/ZODB] 44eac7: Use Lock from utils, rather than threading to ease...

GitHub noreply at github.com
Wed Jun 15 19:53:13 CEST 2016


  Branch: refs/heads/MVCCAdapter
  Home:   https://github.com/zopefoundation/ZODB
  Commit: 44eac704ab283bd8a2d2b9eb01809a68b21f9e9b
      https://github.com/zopefoundation/ZODB/commit/44eac704ab283bd8a2d2b9eb01809a68b21f9e9b
  Author: Jim Fulton <jim at zope.com>
  Date:   2016-06-15 (Wed, 15 Jun 2016)

  Changed paths:
    M src/ZODB/mvccadapter.py

  Log Message:
  -----------
  Use Lock from utils, rather than threading to ease future debugging


  Commit: c7e99e3de151fee77f6d4c7ac7debe2d2ea4c274
      https://github.com/zopefoundation/ZODB/commit/c7e99e3de151fee77f6d4c7ac7debe2d2ea4c274
  Author: Jim Fulton <jim at zope.com>
  Date:   2016-06-15 (Wed, 15 Jun 2016)

  Changed paths:
    M src/ZODB/mvccadapter.py

  Log Message:
  -----------
  Make method copying lazy

This allows us to not worry about method overriding and avoids
creating wrapper methods (some of which were broken).

My guess is that performance is a wash.  We take a tiny hit on the
first access, because ``__getattr__``, but we don't have to copy
methods we never use.


Compare: https://github.com/zopefoundation/ZODB/compare/e9c4ca4089bd...c7e99e3de151


More information about the checkins mailing list