<div dir="ltr">What middleman and ruby versions are you using?  The lrug website runs on middleman nowadays and if I do the a similar command with that app:<div><br></div><div><div>$ ruby -v</div><div>ruby 2.1.5p273 (2014-11-13 revision 48405) [x86_64-darwin13.0]</div><div><br></div><div>$ grep "middleman " Gemfile.lock</div><div>    middleman (3.3.7)</div><div><br></div><div>$ time bundle exec middleman build --no-clean -g index.html<br></div><div>   identical  public/index.html</div><div>      create  public/version.json</div><div>bundle exec middleman build --no-clean -g index.html  1.53s user 0.22s system 99% cpu 1.763 total</div><div><br></div></div><div>I ran that a bunch of times and it’s always about 1.8s total.  </div><div><br></div><div>So, yes, it’s a bit slow compared to the perl tool, but it’s not clear if that’s ruby vs. perl or middleman vs. ttree.  My guess is there’s some startup cost for a large middleman app (similar to a rails app?) that might be a factor here as if I take the build reporter plugin out (the thing that’s generating public/version.json in my run) it saves another 0.15s off the total: </div><div><br></div><div><div>$ time bundle exec middleman build --no-clean -g index.html</div><div>   identical  public/index.html</div><div>bundle exec middleman build --no-clean -g index.html  1.45s user 0.19s system 99% cpu 1.647 total</div></div><div><br></div><div>So it’s possible there’s some slowdown depending on the types of plugins and things your site compilation is doing.  </div><div><br></div><div>However, even if I wipe my build directory and regenerate the whole lrug site it only takes ~9s which isn’t that slow.  That’s not to say that if you (or anyone else) finds a magic speedup option I wouldn’t be interested in using it ;)</div><div><br></div><div>Cheers,</div><div><br></div><div>Murray</div><div class="gmail_extra"><br><div class="gmail_quote">On 28 July 2015 at 01:46, gvim <span dir="ltr"><<a href="mailto:gvimrc@gmail.com" target="_blank">gvimrc@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">From the source directory of my Middleman project:<br>
<br>
../bin/middleman build --no-clean -g index.html<br>
<br>
.... takes 2.24 seconds<br>
<br>
I switched from Perl to Ruby a couple of years ago but with Perl's Template::Toolkit, which is by no means a lightweight library, the same processs:<br>
<br>
ttree -f ../tt/ttree.cfg index.sht<br>
<br>
... takes 0.13 seconds.<br>
<br>
Am I missing an option or something?<span class="HOEnZb"><font color="#888888"><br>
<br>
gvim<br>
_______________________________________________<br>
Chat mailing list<br>
<a href="mailto:Chat@lists.lrug.org" target="_blank">Chat@lists.lrug.org</a><br>
Archives: <a href="http://lists.lrug.org/pipermail/chat-lrug.org" rel="noreferrer" target="_blank">http://lists.lrug.org/pipermail/chat-lrug.org</a><br>
Manage your subscription: <a href="http://lists.lrug.org/options.cgi/chat-lrug.org" rel="noreferrer" target="_blank">http://lists.lrug.org/options.cgi/chat-lrug.org</a><br>
List info: <a href="http://lists.lrug.org/listinfo.cgi/chat-lrug.org" rel="noreferrer" target="_blank">http://lists.lrug.org/listinfo.cgi/chat-lrug.org</a><br>
</font></span></blockquote></div><br></div></div>