<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - godot engine poor performance"
href="https://bugs.freedesktop.org/show_bug.cgi?id=99319#c4">Comment # 4</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - godot engine poor performance"
href="https://bugs.freedesktop.org/show_bug.cgi?id=99319">bug 99319</a>
from <span class="vcard"><a class="email" href="mailto:vegorov180@gmail.com" title="Vladislav Egorov <vegorov180@gmail.com>"> <span class="fn">Vladislav Egorov</span></a>
</span></b>
<pre>(In reply to Thomas Helland from <a href="show_bug.cgi?id=99319#c2">comment #2</a>)
<span class="quote">> A small update: It appears we are spending all of the time walking in a
> for-loop at the bottom of context_cleanup:
>
> for (i = 0; i < ARRAY_SIZE(cs->buffer_indices_hashlist); i++) {
> cs->buffer_indices_hashlist[i] = -1;
> }</span >
Interesting fact that GCC with -O2 doesn't optimize loops like that to memcpy
or memset, even if they are large. It needs additional flag
-ftree-loop-distribute-patterns from -O3 or even -mtune options to do it.
Proof: <a href="https://godbolt.org/g/VwbSqK">https://godbolt.org/g/VwbSqK</a></pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
<li>You are the QA Contact for the bug.</li>
</ul>
</body>
</html>