<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><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">131951</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Quadratic time on reading and converting html files with images
</td>
</tr>
<tr>
<th>Product</th>
<td>LibreOffice
</td>
</tr>
<tr>
<th>Version</th>
<td>6.4.2.2 release
</td>
</tr>
<tr>
<th>Hardware</th>
<td>x86-64 (AMD64)
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux (All)
</td>
</tr>
<tr>
<th>Status</th>
<td>UNCONFIRMED
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>Writer
</td>
</tr>
<tr>
<th>Assignee</th>
<td>libreoffice-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>klev.paul@gmail.com
</td>
</tr></table>
<p>
<div>
<pre>Description:
Time of opening and converting html files with embedded base64 images is
quadratic to image size
For my test I'm using command
```
soffice --headless --norestore --convert-to odt:writerweb8_writer $file_name
```
to convert from html to odt
Time of execution of the command depends on size of the embedded image.
For example if image size is 100kB, then it takes about 0.4 seconds,
for 5MB image it is already 29 sec on my machine,
html with 16 MB image requires 4 minutes to be converted
Also time to open such html has similar correlation to the images
See attachments for the statistics and the html files
Steps to Reproduce:
1a. Convert html file with embedded base64 encoded image
using command soffice --headless --norestore --convert-to odt:writerweb8_writer
$file_name
1b. Or try to open such files with LibreOfficeWriter
Actual Results:
Time to open/convert file is quadratic to image file size
Expected Results:
Time to open/convert file should be linear to image file size
Reproducible: Always
User Profile Reset: No
Additional Info:
Version: 6.4.2.2
Build ID: 6.4.2-1
CPU threads: 12; OS: Linux 5.5; UI render: default; VCL: kf5;
Locale: fr-CH (ru_RU.UTF-8); UI-Language: en-US
Calc: threaded</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>