<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Pathological case demonstrating massive slowdown"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=106135#c2">Comment # 2</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Pathological case demonstrating massive slowdown"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=106135">bug 106135</a>
              from <span class="vcard"><a class="email" href="mailto:aacid@kde.org" title="Albert Astals Cid <aacid@kde.org>"> <span class="fn">Albert Astals Cid</span></a>
</span></b>
        <pre>So there's two possible patches i came to think

a) Don't parse all objects in an ObjectStream
b) Increase the number of cached ObjectStream

Using a) in this particular pdf, time goes from 40s to 10s on my machine (still
more than the 3s the non compressed pdf)

Using b) it goes to 3s, but at the expense of using more memory (the 50 in
there is a random number would obviously need improvement)


And about a) i'm not even sure it's an improvement in all cases since here it
only helps because for most of the ObjectStream we just create it and then use
one object instead all of them, if we used them all, it'd be slower.

So i guess the ideal would be checking how much more memory doing b) means and
probably go with it?</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>