<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Include/dictobject.h, branch v2.7a3</title>
<subtitle>Python interpreter</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Include/dictobject.h?h=v2.7a3</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Include/dictobject.h?h=v2.7a3'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2010-01-11T23:17:10Z</updated>
<entry>
<title>Issue #1967: Backport dictionary views.</title>
<updated>2010-01-11T23:17:10Z</updated>
<author>
<name>Alexandre Vassalotti</name>
<email>alexandre@peadrop.com</email>
</author>
<published>2010-01-11T23:17:10Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=69eb51697c65f8a1009e51f80f3d7abcc62b7344'/>
<id>urn:sha1:69eb51697c65f8a1009e51f80f3d7abcc62b7344</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Issue #4688: Add a heuristic so that tuples and dicts containing only</title>
<updated>2009-03-23T18:41:45Z</updated>
<author>
<name>Antoine Pitrou</name>
<email>solipsis@pitrou.net</email>
</author>
<published>2009-03-23T18:41:45Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=f8387af2620b2e02ceac856e08786429a913adb5'/>
<id>urn:sha1:f8387af2620b2e02ceac856e08786429a913adb5</id>
<content type='text'>
untrackable objects are not tracked by the garbage collector. This can
reduce the size of collections and therefore the garbage collection overhead
on long-running programs, depending on their particular use of datatypes.

(trivia: this makes the "binary_trees" benchmark from the Computer Language
Shootout 40% faster)
</content>
</entry>
<entry>
<title>#1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and Py_REFCNT. Macros for b/w compatibility are available.</title>
<updated>2007-12-19T02:37:44Z</updated>
<author>
<name>Christian Heimes</name>
<email>christian@cheimes.de</email>
</author>
<published>2007-12-19T02:37:44Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=e93237dfcc4ee4feee62adafb4e7899487ca864b'/>
<id>urn:sha1:e93237dfcc4ee4feee62adafb4e7899487ca864b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Give meaning to the oparg for BUILD_MAP:  estimated size of the dictionary.</title>
<updated>2007-12-18T21:24:09Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2007-12-18T21:24:09Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=fd7ed407d79b797e20d0a6fe69e18f9ba9354979'/>
<id>urn:sha1:fd7ed407d79b797e20d0a6fe69e18f9ba9354979</id>
<content type='text'>
Allows dictionaries to be pre-sized (upto 255 elements) saving time lost
to re-sizes with their attendant mallocs and re-insertions.

Has zero effect on small dictionaries (5 elements or fewer), a slight
benefit for dicts upto 22 elements (because they had to resize once
anyway), and more benefit for dicts upto 255 elements (saving multiple
resizes during the build-up and reducing the number of collisions on
the first insertions).  Beyond 255 elements, there is no addional benefit.
</content>
</entry>
<entry>
<title>PEP 3123: Provide forward compatibility with Python 3.0, while keeping</title>
<updated>2007-07-21T06:55:02Z</updated>
<author>
<name>Martin v. Löwis</name>
<email>martin@v.loewis.de</email>
</author>
<published>2007-07-21T06:55:02Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=6819210b9e4e5719a6f7f9c1725f8fa70a8936f6'/>
<id>urn:sha1:6819210b9e4e5719a6f7f9c1725f8fa70a8936f6</id>
<content type='text'>
backwards compatibility. Add Py_Refcnt, Py_Type, Py_Size, and
PyVarObject_HEAD_INIT.
</content>
</entry>
<entry>
<title>Variation of patch # 1624059 to speed up checking if an object is a subclass</title>
<updated>2007-02-25T19:44:48Z</updated>
<author>
<name>Neal Norwitz</name>
<email>nnorwitz@gmail.com</email>
</author>
<published>2007-02-25T19:44:48Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=ee3a1b5244e60566c5d5c8f6a1ea4b381de99f1c'/>
<id>urn:sha1:ee3a1b5244e60566c5d5c8f6a1ea4b381de99f1c</id>
<content type='text'>
of some of the common builtin types.

Use a bit in tp_flags for each common builtin type.  Check the bit
to determine if any instance is a subclass of these common types.
The check avoids a function call and O(n) search of the base classes.
The check is done in the various Py*_Check macros rather than calling
PyType_IsSubtype().

All the bits are set in tp_flags when the type is declared
in the Objects/*object.c files because PyType_Ready() is not called
for all the types.  Should PyType_Ready() be called for all types?
If so and the change is made, the changes to the Objects/*object.c files
can be reverted (remove setting the tp_flags).  Objects/typeobject.c
would also have to be modified to add conditions
for Py*_CheckExact() in addition to each the PyType_IsSubtype check.
</content>
</entry>
<entry>
<title>Extend work on revision 52962:  Eliminate redundant calls to PyObject_Hash().</title>
<updated>2007-02-19T02:03:19Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2007-02-19T02:03:19Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=d6fc72a5ae27048dae56c773896ccbd6152d9b9b'/>
<id>urn:sha1:d6fc72a5ae27048dae56c773896ccbd6152d9b9b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Convert relevant dict internals to Py_ssize_t.</title>
<updated>2006-05-30T04:16:25Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2006-05-30T04:16:25Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=9b10f7e0cbacad9be6375f0e6dbf70cf18574e6b'/>
<id>urn:sha1:9b10f7e0cbacad9be6375f0e6dbf70cf18574e6b</id>
<content type='text'>
I don't have a box with nearly enough RAM, or an OS,
that could get close to tickling this, though (requires
a dict w/ at least 2**31 entries).
</content>
</entry>
<entry>
<title>Merge ssize_t branch.</title>
<updated>2006-02-15T17:27:45Z</updated>
<author>
<name>Martin v. Löwis</name>
<email>martin@v.loewis.de</email>
</author>
<published>2006-02-15T17:27:45Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=18e165558b24d29e7e0ca501842b9236589b012a'/>
<id>urn:sha1:18e165558b24d29e7e0ca501842b9236589b012a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix name problem in previous checkin: Dict not List</title>
<updated>2003-12-26T17:17:49Z</updated>
<author>
<name>Jeremy Hylton</name>
<email>jeremy@alum.mit.edu</email>
</author>
<published>2003-12-26T17:17:49Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=87c1afa057f795cecf197d9d2ec09e8e097b2601'/>
<id>urn:sha1:87c1afa057f795cecf197d9d2ec09e8e097b2601</id>
<content type='text'>
</content>
</entry>
</feed>
