Since 2012-12-25 LuaJitTeX is available. It is LuaTeX with LuaJit based on Lua
5.1.
Two modes are available by default:
- jit turned off, the default mode (only use the faster virtual machine)
- jit turned on (in most cases not faster, even slower)
In ConTeXt standalone LuaJitTeX is included by default, which means using MkIV
with LuaJitTeX is as easy as providing the --jit argument:
context --jit somefile.tex # or
context --jiton somefile.tex
For plainTeX simply use luajittex as compiler:
luajittex --fmt=luajittex-plain.fmt somefile.tex # or
luajittex --jiton --fmt=luajittex-plain.fmt somefile.tex
Building the format for plainJitTeX is no different than building the format
for LuaTeX.
Just to provide an impression of the speed difference I did a quick
non-scientific test on a simple document. Here are the results for a ConTeXt
document with the three possible options:
Engine Compile time
------ ------------
LuaTeX 3.6s
LuaJitTeX (jit turned off) 2.9s
LuaJitTeX (jit turned on) 3.0s
Edit: There seems to be some confusion about how to obtain LuajitTeX. The project is hosted on foundry.supelec.fr - LuajitTeX. Recently they restructured their servers and relocated their content. Unfortunately the URLs changed and the old ones are not valid any longer. The sources can be obtained with SVN using
svn checkout --username anonsvn https://foundry.supelec.fr/svn/luajittex/trunk
The binaries can be found on the ConTeXt garden.