I have a 100 page PDF that is about 50 MBs. I am running the script below against it and it\'s taking about 23 seconds per page. The PDF is a scan of a paper document.
I was crunching a ~300 page PDF on a core i7 and found that adding the following options provided a significant speedup:
%-> comments to the right
-dNumRenderingThreads=8 % increasing up to 64 didn't make much difference
-dBandHeight=100 % didn't matter much
-dBandBufferSpace=500000000 % (500MB)
-sBandListStorage=memory % may or may not need to be set when gs is compiled
-dBufferSpace=1000000000 % (1GB)
The -c 1000000000 setnvmthreshold -f thing didn't make much difference for me, FWIW.