<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, May 9, 2016 at 2:49 PM, Mateusz Loskot <span dir="ltr"><<a href="mailto:mateusz@loskot.net" target="_blank">mateusz@loskot.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Point taken.<br>
<br>
Although the proposal looks OK, I'd suggest to check what<br>
assembler code generates your favourite C++ toolkit,<br>
or at least measured times for<br>
<span class=""><br>
int anVals[256];<br>
memset(anVals, 0, 256*sizeof(int));<br></span></blockquote><div><br></div><div>Are "we" doing memset anymore in these cases?</div><div><br></div><div>int anVals[256] = {};</div><div><br></div><div>seems preferable</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">vs<br>
<span class=""><br>
std::vector<int> oVals(256, 0);<br>
<br>
</span>and compare with:<br>
<br>
std::vector<char> oVals(256, 0);<br></blockquote><div><br></div><div>Think vector is a bad solution for something that's fixed. Just write something. But I already suggested that and wrote something... :)</div><div><br></div><div>Do you know why they are wedded to a 16K stack?</div><div><br></div></div>-- <br><div class="gmail_signature">Andrew Bell<br><a href="mailto:andrew.bell.ia@gmail.com" target="_blank">andrew.bell.ia@gmail.com</a></div>
</div></div>