title: Can a high-performance jpeglib-turbo implmentation decompress/compress in <100ms?
body: <p>I'm currently implementing a jpeg resizer in C++ using the <a href="http://libjpeg-turbo.virtualgl.org/" rel="nofollow">jpeglib-turbo</a> library.</p>
  
  <p>I've been given the target of 100 milli-seconds for JPEG decompression and recompression using the library. The best I can come up with using the recommended optimisation settings (documented in jpeglib-turbo usage.txt) is around 320ms, so I'm wondering is 100ms even possible/realistic? This would be to decompress/recompress an image of 3000x4000 px from around 6Mb in size to 130Kb.</p>
  
  <p>The code that I'm using for fast decompression is:</p>
  
  <pre><code>    dinfo.dct_method = JDCT_IFAST;
      dinfo.do_fancy_upsampling = FALSE;
      dinfo.two_pass_quantize = FALSE;
      dinfo.dither_mode = JDITHER_ORDERED;
      dinfo.scale_num = 1/8;
  </code></pre>