[Checkins] [zopefoundation/zope.interface] 603a17: Optimize the extremely common case of a __bases__ ...

Jason Madden noreply at github.com
Mon Mar 9 20:35:08 CET 2020


  Branch: refs/heads/issue21
  Home:   https://github.com/zopefoundation/zope.interface
  Commit: 603a171643346a0cbe540dbf879bdc481402aba6
      https://github.com/zopefoundation/zope.interface/commit/603a171643346a0cbe540dbf879bdc481402aba6
  Author: Jason Madden <jamadden at gmail.com>
  Date:   2020-03-09 (Mon, 09 Mar 2020)

  Changed paths:
    M src/zope/interface/declarations.py
    M src/zope/interface/interface.py
    M src/zope/interface/registry.py
    M src/zope/interface/ro.py
    M src/zope/interface/tests/test_declarations.py

  Log Message:
  -----------
  Optimize the extremely common case of a __bases__ of length one.

In the benchmark, 4/5 of the interfaces and related objects have a base of length one.




More information about the checkins mailing list