<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:ajohnson@redneon.com" title="Adrian Johnson <ajohnson@redneon.com>"> <span class="fn">Adrian Johnson</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [pdftocairo] Memory leak, memory fills in seconds"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=85140">bug 85140</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Component</td>
           <td>utils
           </td>
           <td>general
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [pdftocairo] Memory leak, memory fills in seconds"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=85140#c2">Comment # 2</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [pdftocairo] Memory leak, memory fills in seconds"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=85140">bug 85140</a>
              from <span class="vcard"><a class="email" href="mailto:ajohnson@redneon.com" title="Adrian Johnson <ajohnson@redneon.com>"> <span class="fn">Adrian Johnson</span></a>
</span></b>
        <pre><<
    /Type /Pages
    /Kids [3 0 R]
    /Count 213804087
<span class="quote">>></span >

The PDF claims to have 213804087 pages. Catalog.cc allocates the array of page
pointers and array of page Refs and takes a very long time to initialize both
arrays. I don't see an easy fix. We could dynamically resize the arrays as
pages are accessed so we don't allocate all the memory upfront. But I don't see
the benefit of the additional work, risk of bugs, and slight drop in
performance for the 99.9999% of pdfs that report the correct page size.</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>