title: Any tips for speeding up GhostScript?
body: <p>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.</p>
  
  <pre><code>gswin32.exe -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dCompatibilityLevel=1.3 
              -dPDFSETTINGS=/screen -sOutputFile=out4.pdf 09.pdf
  </code></pre>
  
  <p>Is there anything I can do to speed this up?  I've determined that the <code>-dPDFSettings=/screen</code> is what is making it so slow, but i'm not getting good compression without it...</p>
  
  <p><strong>UPDATE:</strong>
  OK I tried updating it to what I have below.  Am i using the <code>-c 30000000 setvmthreshold</code> portion correctly?</p>
  
  <pre><code>gswin32.exe -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dCompatibilityLevel=1.3 
              -dPDFSETTINGS=/screen -dNumRenderingThreads=2 -sOutputFile=out7.pdf 
              -c 30000000 setvmthreshold -f 09.pdf
  </code></pre>