You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/library/cloud
Cristian Ciupitu 0749112286 Micro-optimization: replace s.find(x)!=-1 with x in s
timeit shows a speedup of ~3x on Python 2.7.5 x86_64.
It also makes the code a bit shorter.
11 years ago
..
cloudformation
digital_ocean
digital_ocean_domain
digital_ocean_sshkey
docker
docker_image
ec2
ec2_ami
ec2_ami_search
ec2_asg
ec2_eip
ec2_elb
ec2_elb_lb
ec2_facts
ec2_group
ec2_key
ec2_lc
ec2_snapshot
ec2_tag
ec2_vol
ec2_vpc
elasticache
gc_storage
gce
gce_lb
gce_net
gce_pd
glance_image
keystone_user
linode
nova_compute
nova_keypair
ovirt
quantum_floating_ip
quantum_floating_ip_associate
quantum_network
quantum_router
quantum_router_gateway
quantum_router_interface
quantum_subnet
rax
rax_clb
rax_clb_nodes
rax_dns
rax_dns_record
rax_facts
rax_files
rax_files_objects
rax_identity
rax_keypair
rax_network
rax_queue
rds
rds_param_group
rds_subnet_group
route53
s3
virt Micro-optimization: replace s.find(x)!=-1 with x in s 11 years ago