<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Objects/dictobject.c, branch v2.4b2</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Objects/dictobject.c?h=v2.4b2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Objects/dictobject.c?h=v2.4b2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2004-07-15T15:54:05Z</updated>
<entry>
<title>Moved SunPro warning suppression into pyport.h and out of individual</title>
<updated>2004-07-15T15:54:05Z</updated>
<author>
<name>Nicholas Bastin</name>
<email>nick.bastin@gmail.com</email>
</author>
<published>2004-07-15T15:54:05Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=9ba301e589b47af776294804240cc10e08e38498'/>
<id>urn:sha1:9ba301e589b47af776294804240cc10e08e38498</id>
<content type='text'>
modules and objects.
</content>
</entry>
<entry>
<title>Disabling end-of-loop code not reached warning on SunPro</title>
<updated>2004-06-18T19:57:13Z</updated>
<author>
<name>Nicholas Bastin</name>
<email>nick.bastin@gmail.com</email>
</author>
<published>2004-06-18T19:57:13Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=9e1bfe7dd99a6678141bb2f9926b37ffe6b5e1b8'/>
<id>urn:sha1:9e1bfe7dd99a6678141bb2f9926b37ffe6b5e1b8</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Update docstring for dict.update() to match the new realities.</title>
<updated>2004-05-28T20:59:21Z</updated>
<author>
<name>Walter Dörwald</name>
<email>walter@livinglogic.de</email>
</author>
<published>2004-05-28T20:59:21Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=d70ad8a9d9c8212af6d83d2d7d08d21760829b17'/>
<id>urn:sha1:d70ad8a9d9c8212af6d83d2d7d08d21760829b17</id>
<content type='text'>
</content>
</entry>
<entry>
<title>* Add unittests for iterators that report their length</title>
<updated>2004-04-12T18:10:01Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2004-04-12T18:10:01Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=7892b1c651d72a5bd08372f40309dec08a7065f0'/>
<id>urn:sha1:7892b1c651d72a5bd08372f40309dec08a7065f0</id>
<content type='text'>
* Document the differences between them
* Fix corner cases covered by the unittests
* Use Py_RETURN_NONE where possible for dictionaries
</content>
</entry>
<entry>
<title>GCC was complaining that 'value' in dictiter_iternextvalue() wasn't</title>
<updated>2004-03-20T19:11:58Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2004-03-20T19:11:58Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=09240f65f8becdb72bb72bd44817e11c7192b24f'/>
<id>urn:sha1:09240f65f8becdb72bb72bd44817e11c7192b24f</id>
<content type='text'>
necessarily always set before used.  Between Tim, Armin &amp; me we
couldn't prove GCC wrong, so we decided to fix the algorithm.  This
version is Armin's.
</content>
</entry>
<entry>
<title>Factor out a double lookup.</title>
<updated>2004-03-19T10:30:00Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2004-03-19T10:30:00Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=0690512a7d66dfdd8964e989e7cd1ea8f1d15228'/>
<id>urn:sha1:0690512a7d66dfdd8964e989e7cd1ea8f1d15228</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Make the new dictionary iterators transparent with respect to length.</title>
<updated>2004-03-18T08:38:00Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2004-03-18T08:38:00Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=0ce6dc85300050356dfa127d741e80fdc9ad987a'/>
<id>urn:sha1:0ce6dc85300050356dfa127d741e80fdc9ad987a</id>
<content type='text'>
This gives another 30% speedup for operations such as
map(func, d.iteritems()) or list(d.iteritems()) which can both take
advantage of length information when provided.
</content>
</entry>
<entry>
<title>Optimize dictionary iterators.</title>
<updated>2004-03-18T02:41:19Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2004-03-18T02:41:19Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=019a148c7221efa8292dad547170282799b23e13'/>
<id>urn:sha1:019a148c7221efa8292dad547170282799b23e13</id>
<content type='text'>
* Split into three separate types that share everything except the
  code for iternext.  Saves run time decision making and allows
  each iternext function to be specialized.

* Inlined PyDict_Next().  In addition to saving a function call, this
  allows a redundant test to be eliminated and further specialization
  of the code for the unique needs of each iterator type.

* Created a reusable result tuple for iteritems().  Saves the malloc
  time for tuples when the previous result was not kept by client code
  (this is the typical use case for iteritems).  If the client code
  does keep the reference, then a new tuple is created.

Results in a 20% to 30% speedup depending on the size and sparsity
of the dictionary.
</content>
</entry>
<entry>
<title>Dictionary optimizations:</title>
<updated>2004-03-17T21:55:03Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2004-03-17T21:55:03Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=4344278250a2994aefc1be03dffc37e1c35e4992'/>
<id>urn:sha1:4344278250a2994aefc1be03dffc37e1c35e4992</id>
<content type='text'>
* Factored constant structure references out of the inner loops for
  PyDict_Next(), dict_keys(), dict_values(), and dict_items().
  Gave measurable speedups to each (the improvement varies depending
  on the sparseness of the dictionary being measured).

* Added a freelist scheme styled after that for tuples.  Saves around
  80% of the calls to malloc and free.  About 10% of the time, the
  previous dictionary was completely empty; in those cases, the
  dictionary initialization with memset() can be skipped.
</content>
</entry>
<entry>
<title>Factor out code common to PyDict_Copy() and PyDict_Merge().</title>
<updated>2004-03-08T04:19:01Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2004-03-08T04:19:01Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=ebedb2f773508ec50df1130bdd53b150a9fab84c'/>
<id>urn:sha1:ebedb2f773508ec50df1130bdd53b150a9fab84c</id>
<content type='text'>
</content>
</entry>
</feed>
