commit | 7d1294b83c7e73c8527460de36af0f43f9b03e21 | [log] [tgz] |
---|---|---|
author | Jack Evans <jack@evans.gb.ne> | Wed Mar 29 20:30:35 2017 |
committer | Will Pearson <uiri00@gmail.com> | Tue Apr 11 23:19:46 2017 |
tree | 30a4fd88096b0b1222edb4aea47a23a8eabeac3e | |
parent | 739fe9a5428bdbe9b8ef760311072529b6d3eab4 [diff] |
Replace range(len(iterable)) with enumerate Used enumerate to cache the value of sl[i] as item at each iteration. Hopefully avoids repeated duplicate array lookups. Was only safe to replace sl[i] with item in locations were prior mutation is guaranteed not to happen during each iteration