<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 - Color picker widget is slow to initialize - does not cache color palette data"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=112532">112532</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Color picker widget is slow to initialize - does not cache color palette data
</td>
</tr>
<tr>
<th>Product</th>
<td>LibreOffice
</td>
</tr>
<tr>
<th>Version</th>
<td>6.0.0.0.alpha0+ Master
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>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>framework
</td>
</tr>
<tr>
<th>Assignee</th>
<td>libreoffice-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>kelemeng@ubuntu.com
</td>
</tr></table>
<p>
<div>
<pre>While working on <a class="bz_bug_link
bz_status_ASSIGNED "
title="ASSIGNED - Palettes and color names are not localizable"
href="show_bug.cgi?id=105000">bug#105000</a> - and sprinkling a few SAL_WARN into
SvxUnoConvertResourceStringBuiltIn() of svx/source/unodraw/unoprov.cxx [1] - I
noticed that the color picker widget runs this color palette initalization
method every time it is instantiated.
This is problematic if there is a window with more than one of this widget,
like Options - LibreOffice - Application colors or Options - Writer - Changes,
causing slow reaction from the window and a spike in CPU usage as well.
For each widget instance it seems like the current color palette is being read
and processed, but this seems to be unnecessary a bit and might be cacheable
for better performance.
[1]
<a href="https://opengrok.libreoffice.org/xref/core/svx/source/unodraw/unoprov.cxx#1588">https://opengrok.libreoffice.org/xref/core/svx/source/unodraw/unoprov.cxx#1588</a></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>