I asked this question almost a year ago but did not have much luck. MikTex's PDFLaTeX has been updated since, but the error is still there:
! TeX capacity exceeded, sorry [save size=50000].
Full source code at http://pastebin.com/XHazZ7Ux
Error log: http://pastebin.com/DtFcT9Cv
Same error with LuaLatex.
Hopefully this time some will be able to shed light on the limitation, why is it in place and what can be done to increase the amount of memory available to compilation.
forest, but probably it uses groups for drawing the subtrees, which means that you either exhaust the save size or the “nest size” because you open too many groups. LuaTeX uses dynamic memory allocation for the main memory, but it still follows TeX's model in some parts (the save size and the nest size among them). In TeX Live the nest size is set to 500. – egreg Mar 20 '15 at 12:57save_size=1000000 lualatex bigforest(I removed the inessentialtabularand left just the code for the tree); painfully slow, at the end I got! Dimension too large.. Lengths can't exceed 2^30sp, that is 5.75 meters. – egreg Mar 20 '15 at 13:04