manila/manila/api/views
houming-wang 51069d5390 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.
Manila 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: I87d26a46ef0d494f92afb1d3bebda2797a12413c
Closes-Bug: #1524771
2015-12-11 19:24:56 -05:00
..
__init__.py Address H104 File contains nothing but comments 2014-07-14 10:19:15 +02:00
availability_zones.py Port availability zones to core API 2015-10-20 13:24:00 +03:00
cgsnapshots.py Add Consistency Groups API 2015-09-05 18:21:17 -04:00
consistency_groups.py Add Consistency Groups API 2015-09-05 18:21:17 -04:00
limits.py Port used limits to core API 2015-10-19 15:15:20 +03:00
quota_class_sets.py Port quotas to core API 2015-11-09 13:54:59 +00:00
quota_sets.py Port quotas to core API 2015-11-09 13:54:59 +00:00
scheduler_stats.py Fix issues with get_pool scheduler API 2015-03-16 16:32:15 +00:00
security_service.py Remove unused attr status from models 2015-05-28 19:07:45 +03:00
services.py Port services to core API 2015-11-09 13:54:48 +00:00
share_instance.py Add Share instances Admin API 2015-08-31 13:41:17 +03:00
share_networks.py Add support of nova network for share-networks API and DB 2015-02-16 14:41:00 +02:00
share_servers.py Add share network id field in share server info 2014-10-08 10:38:40 -04:00
share_snapshots.py Remove copypasted export_location field from snapshots 2015-03-03 10:46:48 +00:00
shares.py Performance: leverage dict comprehension in PEP-0274 2015-12-11 19:24:56 -05:00
types.py Add new URLs for APIs ported from extensions 2015-12-01 12:15:06 +02:00
versions.py Add v2 Manila API path as base for microversions 2015-09-10 13:58:26 +00:00