Container Infrastructure Management Service for OpenStack
Go to file
houming-wang 98875345c2 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.
Magnum does not support python 2.6, we can leverage this.
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/480757/

Change-Id: I61992fa428d6760449afe3754b02506336e8b421
2015-12-03 22:02:02 -05:00
contrib/templates/example Update Dev Quick-Start links to officail docs 2015-10-05 00:35:46 -07:00
devstack Remove temp fix for new oslo.versionedobjects 2015-11-25 23:29:00 -06:00
doc/source Document how to download the mesos image 2015-11-30 16:16:09 -05:00
etc/magnum Changes Swarm Bootstrapping from Public to Etcd 2015-11-19 05:59:03 +00:00
magnum Performance: leverage dict comprehension in PEP-0274 2015-12-03 22:02:02 -05:00
specs Rename heat-kubernetes, heat-mesos, docker-swarm 2015-11-11 16:29:33 -05:00
tools Improve tox.ini to easy developer's life 2015-11-03 17:44:38 +08:00
.coveragerc Change ignore-errors to ignore_errors 2015-09-21 14:28:49 +00:00
.gitignore Add functional_creds.conf to .gitignore 2015-10-22 16:55:06 +09:00
.gitreview Update .gitreview for project rename 2015-03-28 00:20:40 +00:00
.mailmap Initial commit from github (squashed) 2014-11-18 09:23:37 -05:00
.testr.conf Make room for functional tests 2015-04-02 12:25:43 -04:00
babel.cfg Initial commit from github (squashed) 2014-11-18 09:23:37 -05:00
bandit.yaml Add Bandit security lint checking via tox 2015-04-08 10:41:42 -07:00
CONTRIBUTING.rst Workflow documentation is now in infra-manual 2014-12-05 03:30:45 +00:00
Dockerfile Fix the docker build image issue 2015-05-18 11:11:25 +08:00
functional_creds.conf.sample Document how to run functional test locally 2015-11-05 16:46:54 -05:00
HACKING.rst Performance: leverage dict comprehension in PEP-0274 2015-12-03 22:02:02 -05:00
LICENSE Initial commit from github (squashed) 2014-11-18 09:23:37 -05:00
MANIFEST.in Copy Ironic's database model codebase 2014-12-02 15:04:31 -07:00
openstack-common.conf port to oslo.service 2015-06-28 14:29:00 +08:00
README.rst Fix the representation of REST 2015-09-01 08:40:39 +05:30
requirements.txt Merge "Updated from global requirements" 2015-11-28 09:42:54 +00:00
setup.cfg Add CertManager to store CA and client certificate 2015-09-05 16:25:57 +09:00
setup.py Updated from global requirements 2015-09-17 12:12:49 +00:00
test-requirements.txt Updated from global requirements 2015-11-19 22:54:06 +00:00
tox.ini Make bandit included in test-requirements.txt 2015-11-16 22:05:20 -06:00

Magnum

Magnum is an OpenStack project which offers container orchestration engines for deploying and managing containers as first class resources in OpenStack.

For more information, please refer to the following resources: