<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jun 3, 2016 at 5:38 AM, Richard Purdie <span dir="ltr"><<a href="mailto:richard.purdie@linuxfoundation.org" target="_blank">richard.purdie@linuxfoundation.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">"hash() is randomised by default each time you start a new instance of<br>
recent<br>
versions (Python3.3+) to prevent dictionary insertion DOS attacks"<br>
<br>
which means we need to use hashlib.md5 to get consistent values for<br>
the codeparser cache under python 3. Prior to this, the codeparser<br>
cache was effectively useless under python3 as shown by performance<br>
regressions.<br>
<br>
Signed-off-by: Richard Purdie <<a href="mailto:richard.purdie@linuxfoundation.org">richard.purdie@linuxfoundation.org</a>></div></blockquote></div><br>Looks good to me, I was actually wondering about the hashing mechanisms just yesterday. Are the sstate checksums stable between python 2 and python 3?<br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Christopher Larson<br>clarson at kergoth dot com<br>Founder - BitBake, OpenEmbedded, OpenZaurus<br>Maintainer - Tslib<br>Senior Software Engineer, Mentor Graphics</div>
</div></div>