<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 11, 2015 at 12:34 AM, Robert Collins <span dir="ltr"><<a href="mailto:robertc@robertcollins.net" target="_blank">robertc@robertcollins.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class="">On 11 June 2015 at 17:16, Robert Collins <<a href="mailto:robertc@robertcollins.net">robertc@robertcollins.net</a>> wrote:<br>
<br>
> This test conflates setup and execution. Better like my example,<br>
</span>...<br>
<br>
Just had it pointed out to me that I've let my inner asshole out again<br>
- sorry. I'm going to step away from the thread for a bit; my personal<br>
state (daughter just had a routine but painful operation) shouldn't be<br>
taken out on other folk, however indirectly.<br></blockquote><div><br></div><div>Ha, no worries. You are completely correct about conflating setup and execution. As far as I can tell though, even if I isolate the dict setup from the benchmark, I get the same relative differences in results. iteritems() was introduced for a reason!</div><div><br></div><div>If you don't need to go back to .items()'s copy behavior in py2, then six.iteritems() seems to be the best general purpose choice.</div><div><br></div><div>I think Gordon said it best elsewhere in this thread:</div><div><br></div><div>> <span style="font-size:12.8000001907349px">again, i just want to reiterate, i'm not saying don't use items(), i just think we should not blindly use items() just as we shouldn't blindly use iteritems()/viewitems()</span></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div class=""><div class="h5"><br>
-Rob<br>
<br>
--<br>
Robert Collins <<a href="mailto:rbtcollins@hp.com">rbtcollins@hp.com</a>><br>
Distinguished Technologist<br>
HP Converged Cloud<br>
<br>
__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
</div></div></blockquote></div><br></div></div>