<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/zope-interface.git/src/zope/interface, branch issue157</title>
<subtitle>github.com: zopefoundation/zope.interface.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/zope-interface.git/'/>
<entry>
<title>Remove support for hashing uninitialized interfaces.</title>
<updated>2020-01-27T15:31:30+00:00</updated>
<author>
<name>Jason Madden</name>
<email>jamadden@gmail.com</email>
</author>
<published>2020-01-27T15:31:30+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/zope-interface.git/commit/?id=f41ebfdb0b432fd99e1c44c0a1d7fd54a637bdf8'/>
<id>f41ebfdb0b432fd99e1c44c0a1d7fd54a637bdf8</id>
<content type='text'>
Fixes #157
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes #157
</pre>
</div>
</content>
</entry>
<entry>
<title>Whitespace.</title>
<updated>2020-01-27T13:44:29+00:00</updated>
<author>
<name>Jason Madden</name>
<email>jamadden@gmail.com</email>
</author>
<published>2020-01-27T13:44:29+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/zope-interface.git/commit/?id=2c359081237f5d8a87de223e32e380d83b4bd26f'/>
<id>2c359081237f5d8a87de223e32e380d83b4bd26f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Avoid allocating space for tagged values unless they're used. This saves another few percent.</title>
<updated>2020-01-27T13:43:27+00:00</updated>
<author>
<name>Jason Madden</name>
<email>jamadden@gmail.com</email>
</author>
<published>2020-01-23T17:38:41+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/zope-interface.git/commit/?id=7a34a32a3b66073f91ffe978132ae71783a62630'/>
<id>7a34a32a3b66073f91ffe978132ae71783a62630</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Specifications with no dependents are common (4700 out of 7000 in this example), so avoid allocating a WeakKeyDictionary until needed.</title>
<updated>2020-01-27T13:40:36+00:00</updated>
<author>
<name>Jason Madden</name>
<email>jamadden@gmail.com</email>
</author>
<published>2020-01-23T16:57:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/zope-interface.git/commit/?id=7f6638cf5113f9f6ecb51116bbb72fdbc3f3ce06'/>
<id>7f6638cf5113f9f6ecb51116bbb72fdbc3f3ce06</id>
<content type='text'>
This saves another 2% or so.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This saves another 2% or so.
</pre>
</div>
</content>
</entry>
<entry>
<title>Move Declaration, Specification and ClassProvides to __slots__.</title>
<updated>2020-01-27T13:40:35+00:00</updated>
<author>
<name>Jason Madden</name>
<email>jamadden@gmail.com</email>
</author>
<published>2020-01-23T16:24:12+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/zope-interface.git/commit/?id=ab0466e56c6328407c3839a3a392cb127dbdb282'/>
<id>ab0466e56c6328407c3839a3a392cb127dbdb282</id>
<content type='text'>
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.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.
</pre>
</div>
</content>
</entry>
<entry>
<title>cache on volatile attribute in case class is persisted in ZODB</title>
<updated>2020-01-24T23:37:43+00:00</updated>
<author>
<name>Jens W. Klein</name>
<email>jk@kleinundpartner.at</email>
</author>
<published>2020-01-24T23:37:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/zope-interface.git/commit/?id=32726faad8ac4f131b55e5b6785c885f6f2eb1ef'/>
<id>32726faad8ac4f131b55e5b6785c885f6f2eb1ef</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Improve InterfaceClass __hash__ performance</title>
<updated>2020-01-24T16:26:45+00:00</updated>
<author>
<name>Jens W. Klein</name>
<email>jk@kleinundpartner.at</email>
</author>
<published>2020-01-24T16:01:06+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/zope-interface.git/commit/?id=fbadf4a8ab389afd87dda3032a2f1066d766a6b8'/>
<id>fbadf4a8ab389afd87dda3032a2f1066d766a6b8</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Use tp_members in SpecificationBase and ClassProvidesBase.</title>
<updated>2020-01-23T12:39:48+00:00</updated>
<author>
<name>Jason Madden</name>
<email>jamadden@gmail.com</email>
</author>
<published>2020-01-22T15:32:06+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/zope-interface.git/commit/?id=ddf670afb792b7f7849d6383f31cac3273811edf'/>
<id>ddf670afb792b7f7849d6383f31cac3273811edf</id>
<content type='text'>
Instead of storing 1 and 2 attributes, respectively, in __dict__. This lets us eliminate inst_attr and its use of an undocumented API.

It also helps reign in the size of these objects. Before, on CPython 8, a ClassProvides object that subclasses both SpecificationBase and ClassProvidesBase required 408 bytes: 48 for the object, 360 for the dict.

Now it requires 72 + 232 = 304.

With a bit of work on defining __slots__ in Python, that can be brought much lower still, I think.

zope.security tests pass with this installed.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Instead of storing 1 and 2 attributes, respectively, in __dict__. This lets us eliminate inst_attr and its use of an undocumented API.

It also helps reign in the size of these objects. Before, on CPython 8, a ClassProvides object that subclasses both SpecificationBase and ClassProvidesBase required 408 bytes: 48 for the object, 360 for the dict.

Now it requires 72 + 232 = 304.

With a bit of work on defining __slots__ in Python, that can be brought much lower still, I think.

zope.security tests pass with this installed.
</pre>
</div>
</content>
</entry>
<entry>
<title>Bump version as suggested in review.</title>
<updated>2020-01-22T12:19:57+00:00</updated>
<author>
<name>Jason Madden</name>
<email>jamadden@gmail.com</email>
</author>
<published>2020-01-22T12:19:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/zope-interface.git/commit/?id=b928f8a53cb299f72ff60fc8e622b8e41cabad12'/>
<id>b928f8a53cb299f72ff60fc8e622b8e41cabad12</id>
<content type='text'>
Also add a line of missing whitespace.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Also add a line of missing whitespace.
</pre>
</div>
</content>
</entry>
<entry>
<title>Tweaks for coverage reporting.</title>
<updated>2020-01-21T15:38:45+00:00</updated>
<author>
<name>Jason Madden</name>
<email>jamadden@gmail.com</email>
</author>
<published>2020-01-21T15:36:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/zope-interface.git/commit/?id=35f349bb364ff47c6d617384a2c7eb4c3257be8b'/>
<id>35f349bb364ff47c6d617384a2c7eb4c3257be8b</id>
<content type='text'>
And tox. It wasn't properly working to report coverage before.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
And tox. It wasn't properly working to report coverage before.
</pre>
</div>
</content>
</entry>
</feed>
