<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 11, 2014 at 2:55 PM, Dieter Nützel <span dir="ltr"><<a href="mailto:Dieter@nuetzel-hh.de" target="_blank">Dieter@nuetzel-hh.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Am 15.08.2014 04:50, schrieb Jason Ekstrand:<div><div class="h5"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Aug 14, 2014 7:13 PM, "Dieter Nützel" <<a href="mailto:Dieter@nuetzel-hh.de" target="_blank">Dieter@nuetzel-hh.de</a>><br>
wrote:<br>
 ><br>
 > Am 15.08.2014 02:36, schrieb Dave Airlie:<br>
 ><br>
 >>>> On 08/02/2014 02:11 PM, Jason Ekstrand wrote:<br>
 >>>>><br>
 >>>>><br>
 >>>>> Most format conversion operations required by GL can be<br>
performed by<br>
 >>>>> converting one channel at a time, shuffling the channels<br>
around, and<br>
 >>>>> optionally filling missing channels with zeros and ones.  This<br>
adds a<br>
 >>>>> function to do just that in a general, yet efficient, way.<br>
 >>>>><br>
 >>>>> v2:<br>
 >>>>>   * Add better comments including full docs for functions<br>
 >>>>>   * Don't use __typeof__<br>
 >>>>>   * Use inline helpers instead of writing out conversions by<br>
hand,<br>
 >>>>>   * Force full loop unrolling for better performance<br>
 >>>>><br>
 >><br>
 >><br>
 >> This file seems to anger gcc a lot.<br>
 >><br>
 >> It seems to take upwards of a minute or two to compile here.<br>
 >><br>
 >> gcc 4.8.3 on 32-bit x86.<br>
 >><br>
 >> Dave.<br>
 ><br>
 ><br>
 > For me (on our poor little Duron 1800/2 GB) it ran ~5 minutes...<br>
 ><br>
 > gcc 4.8.1 on 32-bit x86.<br>
<br>
If we'd like, the way the macros are set up, it would be easy to<br>
change it so that we do less unrolling in the cases where we are<br>
actually doing substantial format conversion and wouldn't notice the<br>
extra logic quite as much.  I'll play with it a bit tomorrow or next<br>
week and see how how much of a hit we would actually take if we<br>
unrolled a little less in places.<br>
 --Jason Ekstrand<br>
</blockquote>
<br></div></div>
Ping.<br>
<br>
In a second it took 11+ minutes , here...<span class="HOEnZb"><font color="#888888"><br></font></span></blockquote><div><br></div><div>11 minutes! What system are you running?  and are you using -03 or something?  Yes, we can do something to cut it down, but it will probably require a configure flag; the question is what flag.<br></div><div>--Jason <br></div></div><br></div></div>