I had a situation where suddenly my new version of prince 6.0r6 was running much slower than previously (25x -- a doc that used to render in .2 seconds was now taking 5 seconds. (I think this was the prior version was 6.0r3 or 6.0r5 though I haven't thoroughly regression tested.)
WORKAROUND:
I found that it ran fast when the HOME environment variable was defined (set to the same HOME directory as the user account in which prince was installed). When HOME was not set, or was set incorrectly, it ran 25x slower.
I don't believe this was required in the prior versions; they were formerly running in the similar ENV-free situation.
(Even though there is a workaround, isn't it considered a bug, possibly even a security flaw, for prince to rely on any environment variable settings at all?)
To reproduce: run prince normally, then with "env -i", then try turning off all env vars except HOME:
prince test.html -o test.pdf ## fast
env -i prince test.html -o test.pdf ## slow
env -i HOME=/home/pdfserver prince test.html -o test.pdf ## fast again
WORKAROUND:
I found that it ran fast when the HOME environment variable was defined (set to the same HOME directory as the user account in which prince was installed). When HOME was not set, or was set incorrectly, it ran 25x slower.
I don't believe this was required in the prior versions; they were formerly running in the similar ENV-free situation.
(Even though there is a workaround, isn't it considered a bug, possibly even a security flaw, for prince to rely on any environment variable settings at all?)
To reproduce: run prince normally, then with "env -i", then try turning off all env vars except HOME:
prince test.html -o test.pdf ## fast
env -i prince test.html -o test.pdf ## slow
env -i HOME=/home/pdfserver prince test.html -o test.pdf ## fast again