mirror of https://github.com/ansible/ansible.git
Micro-optimization: replace s.find(x)==0 with s.startswith(x)
timeit shows a speedup of ~1.4x on Python 2.7.5 x86_64. It also makes the code a bit shorter.pull/6732/head
parent
1eaf85b89f
commit
96ff1444f0
Loading…
Reference in New Issue