<div dir="ltr">FWIW, I just looked at the time (from timestamps of the binary and various .o files)<div>and it looks like compilation took 28 minutes--so, a lot better than ~50 minutes, but still could be a lot faster.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, May 15, 2020 at 2:48 PM Hy Murveit <<a href="mailto:murveit@gmail.com">murveit@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">FWIW, I ran git pull this morning, I believe these were the only changes since I had previously compiled<div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><br></div><div><p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">> git log --name-only</span></p></div><div><p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(170,171,37)"><span style="font-variant-ligatures:no-common-ligatures">commit 41d8323f85c1c5bce18e56c8850ac028cdca5df2 (</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(56,185,199)"><b>HEAD -> </b></span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(57,192,38)"><b>master</b></span><span style="font-variant-ligatures:no-common-ligatures">, </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(202,51,35)"><b>origin/master</b></span><span style="font-variant-ligatures:no-common-ligatures">, </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(202,51,35)"><b>origin/HEAD</b></span><span style="font-variant-ligatures:no-common-ligatures">)</span></p></div><div><p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">Author: Jasem Mutlaq <<a href="mailto:mutlaqja@ikarustech.com" target="_blank">mutlaqja@ikarustech.com</a>></span></p></div><div><p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">Date: <span> </span>Fri May 15 15:53:54 2020 +0300</span></p></div><div><p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);min-height:13px"><br></p></div><div><p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><span> </span>Correct and simplify the meridian flip degree setting between mount and ekos</span></p></div><div><p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);min-height:13px"><br></p></div><div><p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">kstars/ekos/mount/mount.ui</span></p></div><div><p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);min-height:13px"><br></p></div><div><p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(170,171,37)"><span style="font-variant-ligatures:no-common-ligatures">commit 6749f48a4a056387ca0695cb275a6256501f88a7</span></p></div><div><p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">Author: Jasem Mutlaq <<a href="mailto:mutlaqja@ikarustech.com" target="_blank">mutlaqja@ikarustech.com</a>></span></p></div><div><p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">Date: <span> </span>Fri May 15 15:31:00 2020 +0300</span></p></div><div><p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);min-height:13px"><br></p></div><div><p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><span> </span>Use JNow instead of J2000 when measuring the mount HA circle as propoer by Chris Rowlands to accurate measure the Polar Alignment Error. Requires more testing</span></p></div><div><p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);min-height:13px"><br></p></div><div><p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">kstars/ekos/align/align.cpp</span></p></div><div><p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">kstars/ekos/align/align.h</span></p></div><div><p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);min-height:13px"><br></p></div><div><p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(170,171,37)"><span style="font-variant-ligatures:no-common-ligatures">commit a2ced315eb03f951173a40bb40c28827050ad266</span></p></div><div><p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">Author: Jasem Mutlaq <<a href="mailto:mutlaqja@ikarustech.com" target="_blank">mutlaqja@ikarustech.com</a>></span></p></div><div><p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">Date: <span> </span>Fri May 15 15:29:59 2020 +0300</span></p></div><div><p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);min-height:13px"><br></p></div><div><p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><span> </span>Add function to get UTC datetime from DATE-OBS header field</span></p></div><div><p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);min-height:13px"><br></p></div><div><p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">kstars/fitsviewer/fitsdata.cpp</span></p></div><div><p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">kstars/fitsviewer/fitsdata.h</span></p></div></blockquote></div><div>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);min-height:13px"><span style="font-variant-ligatures:no-common-ligatures"><br></span></p></div><div><p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);min-height:13px"><br></p><p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);min-height:13px">I ran make -j6 kstars on my RPi, but now with ccache installed.</p><p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);min-height:13px">Here are the stats (I ran cache -z before the compile, so the stats only reflect the compile).</p><div><br></div></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><div><font face="monospace">> ccache -s</font></div></div><div><div><font face="monospace">cache directory /home/pi/.ccache</font></div></div><div><div><font face="monospace">primary config /home/pi/.ccache/ccache.conf</font></div></div><div><div><font face="monospace">secondary config (readonly) /etc/ccache.conf</font></div></div><div><div><font face="monospace">stats updated Fri May 15 13:36:11 2020</font></div></div><div><div><font face="monospace">stats zeroed Fri May 15 13:09:23 2020</font></div></div><div><div><font face="monospace">cache hit (direct) 0</font></div></div><div><div><font face="monospace">cache hit (preprocessed) 336</font></div></div><div><div><font face="monospace">cache miss 71</font></div></div><div><div><font face="monospace">cache hit rate 82.56 %</font></div></div><div><div><font face="monospace">called for link 7</font></div></div><div><div><font face="monospace">cleanups performed 0</font></div></div><div><div><font face="monospace">files in cache 1337</font></div></div><div><div><font face="monospace">cache size 715.5 MB</font></div></div><div><div><font face="monospace">max cache size 3.0 GB</font></div></div></blockquote><div><div><br></div></div><div>So, the great news is that ccache did dramatically speed up my compilation.</div><div>(I didn't time it, but cache hit rate was 82.6%). The bad news is that it really does seem to </div><div>recompile many things it doesn't need to.</div><div><br></div><div>Could mount.ui be the thing that triggered 400 files to be recompiled?</div><div><br></div><div>Hy</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, May 14, 2020 at 1:45 AM Giles Coochey <<a href="mailto:giles@coochey.net" target="_blank">giles@coochey.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
On 14/05/2020 04:03, Hy Murveit wrote:<br>
> Thanks. Trying ccache. (May also try the cross-compile...).<br>
><br>
><br>
CCache will help, if you do get cross-compiling set up then another way <br>
to do it is to use distcc, you perform the compilation on the Pi, but it <br>
farms out the compile tasks to other hosts, if the compilation fails on <br>
remote hosts (eg missing libraries) then it reverts to do that <br>
compilation task locally on the Pi. If you have a whole bunch of hosts <br>
then you can go as far as doing things like make -j 50 etc... Just <br>
something I learnt when building Gentoo on slow machines.<br>
<br>
-- <br>
Giles Coochey<br>
<br>
</blockquote></div>
</blockquote></div>