[Checkins] [zopefoundation/zope.interface] 670afb: Move Declaration, Specification and ClassProvides ...
Jason Madden
noreply at github.com
Thu Jan 23 17:24:37 CET 2020
Branch: refs/heads/slots
Home: https://github.com/zopefoundation/zope.interface
Commit: 670afbbb428773baec0f589c8fec77029b277bf6
https://github.com/zopefoundation/zope.interface/commit/670afbbb428773baec0f589c8fec77029b277bf6
Author: Jason Madden <jamadden at gmail.com>
Date: 2020-01-23 (Thu, 23 Jan 2020)
Changed paths:
M src/zope/interface/_zope_interface_coptimizations.c
M src/zope/interface/declarations.py
M src/zope/interface/interface.py
M src/zope/interface/tests/test_declarations.py
M src/zope/interface/tests/test_interface.py
Log Message:
-----------
Move Declaration, Specification and ClassProvides to __slots__.
In a test of 6000 modules that load 2245 InterfaceClass objects and produce 2233 ClassProvides instances, this saves about 1% total memory usage in Python 2.7.
More information about the checkins
mailing list