<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Include/opcode.h, branch 2.6</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Include/opcode.h?h=2.6</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Include/opcode.h?h=2.6'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2007-12-18T18:26:18Z</updated>
<entry>
<title>Speed-up dictionary constructor by about 10%.</title>
<updated>2007-12-18T18:26:18Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2007-12-18T18:26:18Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=effde12f5fe41bab9c27269bd77237200d953afd'/>
<id>urn:sha1:effde12f5fe41bab9c27269bd77237200d953afd</id>
<content type='text'>
New opcode, STORE_MAP saves the compiler from awkward stack manipulations
and specializes for dicts using PyDict_SetItem instead of PyObject_SetItem.

Old disassembly:
              0 BUILD_MAP                0
              3 DUP_TOP
              4 LOAD_CONST               1 (1)
              7 ROT_TWO
              8 LOAD_CONST               2 ('x')
             11 STORE_SUBSCR
             12 DUP_TOP
             13 LOAD_CONST               3 (2)
             16 ROT_TWO
             17 LOAD_CONST               4 ('y')
             20 STORE_SUBSCR

New disassembly:
              0 BUILD_MAP                0
              3 LOAD_CONST               1 (1)
              6 LOAD_CONST               2 ('x')
              9 STORE_MAP
             10 LOAD_CONST               3 (2)
             13 LOAD_CONST               4 ('y')
             16 STORE_MAP
</content>
</entry>
<entry>
<title>Fix #1752132: wrong comment in opcode description.</title>
<updated>2007-07-11T19:41:49Z</updated>
<author>
<name>Georg Brandl</name>
<email>georg@python.org</email>
</author>
<published>2007-07-11T19:41:49Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=c6057c7812ac3dd05a80255b4750f606a0f79f81'/>
<id>urn:sha1:c6057c7812ac3dd05a80255b4750f606a0f79f81</id>
<content type='text'>
</content>
</entry>
<entry>
<title>PEP 343 -- the with-statement.</title>
<updated>2006-02-27T22:32:47Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2006-02-27T22:32:47Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=c2e20744b2b7811632030470971c31630f0975e2'/>
<id>urn:sha1:c2e20744b2b7811632030470971c31630f0975e2</id>
<content type='text'>
This was started by Mike Bland and completed by Guido
(with help from Neal).

This still needs a __future__ statement added;
Thomas is working on Michael's patch for that aspect.

There's a small amount of code cleanup and refactoring
in ast.c, compile.c and ceval.c (I fixed the lltrace
behavior when EXT_POP is used -- however I had to make
lltrace a static global).
</content>
</entry>
<entry>
<title>Install two code generation optimizations that depend on NOP.</title>
<updated>2004-06-21T16:31:15Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2004-06-21T16:31:15Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=9c18e81fb23d60ea77bdf4f3c2649296f26e4a95'/>
<id>urn:sha1:9c18e81fb23d60ea77bdf4f3c2649296f26e4a95</id>
<content type='text'>
Reduces the cost of "not" to almost zero.
</content>
</entry>
<entry>
<title>SF patch #910929:  Optimize list comprehensions</title>
<updated>2004-03-07T07:31:06Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2004-03-07T07:31:06Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=dd80f762650f42f5f9ae820d9f55b21ed6f33bc0'/>
<id>urn:sha1:dd80f762650f42f5f9ae820d9f55b21ed6f33bc0</id>
<content type='text'>
Add a new opcode, LIST_APPEND, and apply it to the code generation for
list comprehensions.  Reduces the per-loop overhead by about a third.
</content>
</entry>
<entry>
<title>Revert the previous enhancement to the bytecode optimizer.</title>
<updated>2003-04-24T05:45:23Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2003-04-24T05:45:23Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=f4cf76dd5eabd8af5d2a866da1f75fa745aa6f29'/>
<id>urn:sha1:f4cf76dd5eabd8af5d2a866da1f75fa745aa6f29</id>
<content type='text'>
The additional code complexity and new NOP opcode were not worth it.
</content>
</entry>
<entry>
<title>Improved the bytecode optimizer.</title>
<updated>2003-04-22T06:49:11Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2003-04-22T06:49:11Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=060641d51160f6bf49a049bb677f8412b5a19de3'/>
<id>urn:sha1:060641d51160f6bf49a049bb677f8412b5a19de3</id>
<content type='text'>
* Can now test for basic blocks.
* Optimize inverted comparisions.
* Optimize unary_not followed by a conditional jump.
* Added a new opcode, NOP, to keep code size constant.
* Applied NOP to previous transformations where appropriate.

Note, the NOP would not be necessary if other functions were
added to re-target jump addresses and update the co_lnotab mapping.
That would yield slightly faster and cleaner bytecode at the
expense of optimizer simplicity and of keeping it decoupled
from the line-numbering structure.
</content>
</entry>
<entry>
<title>Further SET_LINENO reomval fixes.  See comments in patch #587933.</title>
<updated>2002-08-30T13:09:51Z</updated>
<author>
<name>Michael W. Hudson</name>
<email>mwh@python.net</email>
</author>
<published>2002-08-30T13:09:51Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=53d58bb369fbbc1ae93ca423f30b3beb2d83a9a1'/>
<id>urn:sha1:53d58bb369fbbc1ae93ca423f30b3beb2d83a9a1</id>
<content type='text'>
Use a slightly different strategy to determine when not to call the line
trace function.  This removes the need for the RETURN_NONE opcode, so
that's gone again.  Update docs and comments to match.

Thanks to Neal and Armin!

Also add a test suite.  This should have come with the original patch...
</content>
</entry>
<entry>
<title>This is my patch</title>
<updated>2002-08-15T14:59:02Z</updated>
<author>
<name>Michael W. Hudson</name>
<email>mwh@python.net</email>
</author>
<published>2002-08-15T14:59:02Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=dd32a91cc0c8ba178d7ee5e78c30b6920aff66f4'/>
<id>urn:sha1:dd32a91cc0c8ba178d7ee5e78c30b6920aff66f4</id>
<content type='text'>
[ 587993 ] SET_LINENO killer

Remove SET_LINENO.  Tracing is now supported by inspecting co_lnotab.

Many sundry changes to document and adapt to this change.
</content>
</entry>
<entry>
<title>The opcode FOR_LOOP no longer exists.</title>
<updated>2002-06-13T17:59:51Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2002-06-13T17:59:51Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=fea59e7f766b950ccd55f9eee87d4032a768fdcc'/>
<id>urn:sha1:fea59e7f766b950ccd55f9eee87d4032a768fdcc</id>
<content type='text'>
</content>
</entry>
</feed>
