<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - Quadratic time on reading and converting html files with images"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=131951#c8">Comment # 8</a>
on <a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - Quadratic time on reading and converting html files with images"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=131951">bug 131951</a>
from <span class="vcard"><a class="email" href="mailto:klev.paul@gmail.com" title="Pavel <klev.paul@gmail.com>"> <span class="fn">Pavel</span></a>
</span></b>
<pre>HTML::ScanText (svtools/source/svhtml/parthhtml) reads html token data up to
MAX_LEN (=1024) symbols to temp buffer and then do concatenation (+=) of
strings.
This causes allocation of memory and copying existing data and new data
(memcpy)
And because number of chunks is substantial, copying of almost the same data is
repeated multiple times
Possible solution could be increase buffer size each time it is filled (1024,
2048, 4096...)</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>