[REVIEW 3-5] fdo#47644 performance regression on largish .doc
Michael Meeks
michael.meeks at suse.com
Fri May 11 02:09:57 PDT 2012
On Thu, 2012-05-10 at 21:56 +0100, Caolán McNamara wrote:
> with a scenario of nBgn = 11, nRel = 2, desired result is 13
Ah ! how stupid of me, I missed that - but this case is almost totally
pointless ;-) we are just victims of this optimisation of starting in
the middle - which means we have to go lookup where we are; when we
actually precisely know our offset from the beginning of the chain/array
( which is nNew/nPageSize ).
So - how about the attached diff, hopefully rather easier to review &
back-port :-) should I knock a version up for -3-5 ? the #ifdef bravery
is never triggered if enabled (FWIW) during import / export of the
slow .doc anyhow.
All the best,
Michael.
--
michael.meeks at suse.com <><, Pseudo Engineer, itinerant idiot
-------------- next part --------------
A non-text attachment was scrubbed...
Name: storage-speedup.diff
Type: text/x-patch
Size: 4987 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20120511/3025626c/attachment-0001.bin>
More information about the LibreOffice
mailing list