Hi Michael,
On Tue, Jun 6, 2017 at 12:10 AM, Michael Meeks <michael.meeks@collabora.com>
wrote:
Hi Mohammed,
Now I read it again, I'm rather skeptical that:
+ if( !maUsedBuffers.empty() )
+ {
+ pProducedBuffer = maUsedBuffers.front();
+ maUsedBuffers.pop();
+ }
is helpful. I'm not sure that we can re-use these buffers
efficiently
here - perhaps its better just to allocate new ones in the stream read
method; can you profile with and without that (would love to get rid of
the extra complexity if possible).
Here you go.
with UsedBuffers:
https://demo.collaboracloudsuite.com/tdf/index.php/s/Hbsp5rI8FE7CHmF
without UsedBuffers:
https://demo.collaboracloudsuite.com/tdf/index.php/s/PIcWD261zVcwpWj
Regards,
Azeem
Context
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.