Any tips for speeding up GhostScript?

前端 未结 5 900
渐次进展
渐次进展 2020-12-13 00:54

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.

5条回答
  •  余生分开走
    2020-12-13 01:25

    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.

提交回复
热议问题