nova/nova/cmd
ChangBo Guo(gcb) 69fef14509 Performance: leverage dict comprehension in PEP-0274
PEP-0274 introduced dict comprehensions to replace dict constructor
with a sequence of length-2 sequences, these are benefits copied
from [1]:
  The dictionary constructor approach has two distinct disadvantages
  from the proposed syntax though.  First, it isn't as legible as a
  dict comprehension.  Second, it forces the programmer to create an
  in-core list object first, which could be expensive.
Nova dropped python 2.6 support, we can leverage this now.
There is deep dive about PEP-0274[2] and basic tests about
performance[3].
Note: This commit doesn't handle dict constructor with kwagrs.
This commit also adds a hacking rule.

[1]http://legacy.python.org/dev/peps/pep-0274/
[2]http://doughellmann.com/2012/11/12/the-performance-impact-of-using-dict-instead-of-in-cpython-2-7-2.html
[3]http://paste.openstack.org/show/154798/

Change-Id: Ifb5cb05b9cc2b8758d5a8e34f7792470a73d7c40
2015-01-16 10:06:13 +08:00
..
__init__.py move eventlet GREENDNS override to top level 2014-12-08 17:41:03 -05:00
all.py Replacement `_` on `_LE` in all LOG.exception 2014-11-20 11:19:09 +02:00
api.py Register objects in more services 2014-05-20 23:19:39 -07:00
api_ec2.py Register objects in more services 2014-05-20 23:19:39 -07:00
api_metadata.py Register objects in more services 2014-05-20 23:19:39 -07:00
api_os_compute.py Register objects in more services 2014-05-20 23:19:39 -07:00
cells.py Register objects in more services 2014-05-20 23:19:39 -07:00
cert.py Introduce Guru Meditation Reports into Nova 2014-02-24 19:24:41 -05:00
compute.py Replacement `_` on `_LE` in all LOG.error 2014-10-21 06:40:05 +00:00
conductor.py rename oslo.concurrency to oslo_concurrency 2014-12-06 23:30:05 +08:00
console.py Introduce Guru Meditation Reports into Nova 2014-02-24 19:24:41 -05:00
consoleauth.py Resolve import dependency in consoleauth service 2014-07-04 15:23:22 -04:00
dhcpbridge.py maint:Don't translate debug level logs 2014-10-30 14:15:57 +08:00
idmapshift.py Adds nova-idmapshift cli utility 2014-08-29 14:52:22 -04:00
manage.py Performance: leverage dict comprehension in PEP-0274 2015-01-16 10:06:13 +08:00
network.py Replacement `_` on `_LE` in all LOG.error 2014-10-21 06:40:05 +00:00
novnc.py Remove vi modelines 2014-02-03 14:19:44 +00:00
novncproxy.py Merge "novncproxy: Setup log when start nova-novncproxy" 2014-07-15 14:38:14 +00:00
objectstore.py Introduce Guru Meditation Reports into Nova 2014-02-24 19:24:41 -05:00
scheduler.py Register objects in more services 2014-05-20 23:19:39 -07:00
serialproxy.py cmd: update the default behavior of serial console 2014-09-29 10:24:57 -04:00
spicehtml5proxy.py Remove deprecated spicehtml5 options 2014-11-07 10:29:59 +01:00
xvpvncproxy.py Introduce Guru Meditation Reports into Nova 2014-02-24 19:24:41 -05:00