A while back I started bumping into issues with LuaLaTex and switched to compiling a project in XeLaTeX. Since then it seems most of my issues have been resolved upstream or are fixable one way on another. It's been suggested that I switch back to avoid some XeLaTeX issues, but speed is one reason that would keep me from doing so. I've gotten almost all the kinks worked out now so my documents compile in either engine, but LuaLaTeX takes over twice as long to do so.
My documents are not long, but they are complicated (example PDF output) involving many rendering passes to fit everything inside of a hard page limit, then doing it all again for other page layouts and content options. A few seconds here and there isn't that big an issue until it adds up to waiting 5 minutes for your documents to be ready for printing instead of 2. I did some testing and it appears this isn't unique to my complicated project. For example this MWE I was using to test ligatures, hyphenation and small-cap font features compiles in 1.29 seconds using XeLaTeX but takes 3.96 seconds in LuaLaTeX!
\documentclass{minimal}
\usepackage{polyglossia}
\usepackage{testhyphens}
\usepackage{libertine}
\setmainlanguage{turkish}
\begin{document}
Uzun---tire. {\scshape Uzun---tire.}
\begin{checkhyphens}{}
İstanbullularınki
İstanbul’lularınki
\end{checkhyphens}
İzmir {\scshape İzmir}
\end{document}
Is this just the way the engine is or am I doing something wrong? If the performance isn't normally so dramatically different, what sort of things might I be looking for to get it setup correctly?
Edit: Based on comments and answers so far it looks like a lot of potentially related issues may be platform specific. I'm particularly interested in problems manifest on and solutions relevant for Linux, although any generally applicable pitfalls or optimizations are welcome.
lualatex --versionis reporting "This is LuaTeX, Version beta-0.79.1 (TeX Live 2014) (rev 4971)", which is strangely a different format that Andrew's notation. How do I compare? – Caleb Mar 24 '15 at 11:48