This question may seem like it's been asked a million times over, but the relevant questions tackle XeLaTeX or plain LaTeX. What I want to know is if moving any filesystems/file locations to a dedicated RAMdisk would help more quickly compile LuaTeX?
Reading the previous questions, it seems that the consensus is that it's basically the CPU/Intel processor that is the key bottleneck. However, this comment notes that when using certain fonts, the OS/filesystem performance does play a role as it affects font loading. I use LuaTeX exclusively as I have a self-made package which uses MinionMath and ArnoPro, as well as some other fonts for certain symbols. For this reason, and because of that comment, I'm wondering if maybe for this specific case moving some filesystems/file locations to the RAMdisk could be helpful in speeding up performance?
I understand that LuaTeX isn't as fast as other compilers, and especially my custom package is ridiculously demanding (LOTS of additional commands and customisations, and using otf fonts of ArnoPro in all sizes and types, and MinionMath font, as well as 13 other packages preloaded into it which are absolutely necessary -- trust me on this one!) so I understand that it will still be relatively slow. However, even having the time cut by half or a quarter would be great! So, would this idea work? And how would I go about it (i.e. which filesystems/locations specifically would I move)? I use Linux 17.1 Cinnamon if it helps. Thanks!
EDIT: Thanks to a good point about LuaJIT that was brought up, I found further commentary on the font debacle here. The comments in that specific thread are revealing, and help point out my problem with fonts specifically as the major issue, not the OS or compiler or etc. It's not clear that LuaJIT (with JIT on or off) would help the issue much, as font loading takes the vast majority of the time (probably with fontforge libraries or similar, no idea). That is the biggest issue. (Also, the links for downloading LuaJIT require a password now!)
mkdir /usr/local/texlive; mount -t tmpfs -o size=4G,mode=755 tmpfs /usr/local/texliveand see what happens if you install TL 2014 there versus to the regular disk. – Mike Renfro Jan 04 '15 at 01:57luajittex(with and without jit enabled) to see if this speeds up things. But as with every performance question: measure it. It is hard to guess where the performance bottleneck is. You could even write your own font loader if you need more performance... – topskip Jan 04 '15 at 13:09texmffolder under/usr/local/sharebut still that's a good point! I didn't consider that until now. How would I install TL in RAM (and make sure it stays there whenever the laptop gets rebooted)? I've been using Linux's Software Manager the entire time so not sure how this would work :( – airatin Jan 05 '15 at 05:06luajittexbut no idea how to install it (I put that file in/usr/binbut there's nofmtfile!) – airatin Jan 05 '15 at 13:26luajittexin TeXlive, but as the name says it only typesets TeX. You probably want to typeset LaTeX. Therefore you have to build the corresponding format. For instructions see this comment. – Henri Menke Aug 02 '16 at 13:28vardirectory e.g. under~/.texlive. If the bottleneck is loading fonts, putting TL on a ram disk won't do diddly squat, even if the fonts are part of TL which they mostly are not in this case. @ OP Never modify directories managed by your system's package manager directly e.g./usr/bin. This way madness lies. – cfr Dec 24 '16 at 04:03~/.texlivefolder into the ramdisk. – Mike Renfro Dec 26 '16 at 16:10~/.texliveYYYYis. It is probably small, but worth checking just to be safe. – cfr Dec 26 '16 at 17:04