<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - [patch] reduce use of gmalloc() in GooString::appendfv()"
href="https://bugs.freedesktop.org/show_bug.cgi?id=89096#c2">Comment # 2</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - [patch] reduce use of gmalloc() in GooString::appendfv()"
href="https://bugs.freedesktop.org/show_bug.cgi?id=89096">bug 89096</a>
from <span class="vcard"><a class="email" href="mailto:williambader@hotmail.com" title="William Bader <williambader@hotmail.com>"> <span class="fn">William Bader</span></a>
</span></b>
<pre>I put my copy of the file at
<a href="http://williambader.com/2-DESCR_648853-IT-EN-DE_MANITOU_RIGENERATO.pdf">http://williambader.com/2-DESCR_648853-IT-EN-DE_MANITOU_RIGENERATO.pdf</a>
pdftops has to write a lot of formatted strings, especially for PDFs that draw
a lot of lines. I think that the calls to write formatted strings (which end
up as calls to appendfv()) are necessary. My patch just saves appendfv() from
making a malloc call for a small, fixed size chunk of memory each time that it
is called. In the test file, all of the calls have 8 arguments or less, and
appendfv() never needs to reallocate the argument buffer.</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>