[Libreoffice-bugs] [Bug 44719] extremely slow import of pptx ...

2012-06-21 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=44719

--- Comment #9 from Michael Meeks michael.me...@novell.com 2012-06-21 
08:53:15 PDT ---
Re-profiling with master, I get 12% of the time in libfontconfig which is a big
win - whether this patch is enough to fix it or not I don't know; will re-try
on libreoffice-3-5 I guess :-)

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 44719] extremely slow import of pptx ...

2012-06-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=44719

--- Comment #6 from Caolán McNamara caol...@redhat.com 2012-06-20 04:12:47 
PDT ---
able to check if
http://cgit.freedesktop.org/libreoffice/core/commit/?id=8c023fd645c8b83637ffcde4055886b2e4f94393
makes this better ?

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 44719] extremely slow import of pptx ...

2012-06-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=44719

--- Comment #7 from Michael Meeks michael.me...@novell.com 2012-06-20 
06:06:46 PDT ---
yep, nice work, will do - just re-building master to have a go :-)
We should try to get this into -3-5-5 IMHO if it does the trick.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 44719] extremely slow import of pptx ...

2012-06-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=44719

--- Comment #8 from Michael Meeks michael.me...@novell.com 2012-06-20 
09:12:11 UTC ---
Interestingly I re-ran the test vs. master, and I get a 24 second load time
before, and a 23 second load time afterwards (and on a slower machine) - that
seems to suggest that the performance problem has either gone away
spontaneously - or I'm measuring the wrong thing; frustrating at one level -
but encouraging at another :-)

I'll investigate further as/when I get home.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 44719] extremely slow import of pptx ...

2012-01-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=44719

Petr Mladek pmla...@suse.cz changed:

   What|Removed |Added

 Blocks||37361

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 44719] extremely slow import of pptx ...

2012-01-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=44719

--- Comment #5 from Michael Meeks michael.me...@novell.com 2012-01-17 
10:14:29 PST ---
Created attachment 55690
  -- https://bugs.freedesktop.org/attachment.cgi?id=55690
tweaked version of known-bad patch for testing ...

So the bad news is that, yes reverting this patch makes rather a substantial
difference.

export OOO_EXIT_POST_STARTUP=1 ; export OOO_DISABLE_RECOVERY=1 ; export RTLd;
rm -f $RTL_LOGFILE ; ./soffice.bin /tmp/test.pptx ; cat $RTL_LOGFILE
...
189365 1 } PERFORMANCE - DesktopOpenClients_Impl()

and adding the revert / lamers cache:

...
044013 1 } PERFORMANCE - DesktopOpenClients_Impl()

So - 44 seconds is already not so ideal for this, particularly when compared to
the ~5 seconds it takes to load in Powerpoint on the same machine ;-)

But 189 seconds is really a lot worse ;-) 4x slower.

Having said that - at 44 seconds, we have do be doing something -really- pretty
dumb here, 113 slides 300ms per slide to open it ? it seems amazing.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 44719] extremely slow import of pptx ...

2012-01-16 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=44719

Michael Meeks michael.me...@novell.com changed:

   What|Removed |Added

 CC||caol...@redhat.com

--- Comment #3 from Michael Meeks michael.me...@novell.com 2012-01-16 
09:39:38 PST ---
Prolly this is just pptx doing something bad, but thought you might be
interested Caolan :-)

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 44719] extremely slow import of pptx ...

2012-01-16 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=44719

--- Comment #4 from Caolán McNamara caol...@redhat.com 2012-01-16 11:46:12 
PST ---
If this used to perform much better and sucks now, then it might be
http://cgit.freedesktop.org/libreoffice/core/commit/?id=3f9a28f1f704967446b411b3b7e176deeb78ca83
which should be easily enough locally reverted for a test even though the files
moved around a bit.

If it is that, then we need to cache on the full set of properties of the
FontSelectPattern not just the name

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 44719] extremely slow import of pptx ...

2012-01-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=44719

Michael Meeks michael.me...@novell.com changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
 Ever Confirmed|0   |1

--- Comment #1 from Michael Meeks michael.me...@novell.com 2012-01-12 
05:52:41 PST ---
A representative trace was:

Breakpoint 1, psp::PrintFontManager::Substitute (this=0xb6d91140, rPattern=...,
rMissingCodes=)
at /home/opt/libreoffice/core/vcl/generic/fontmanager/fontconfig.cxx:754
754FontCfgWrapper rWrapper = FontCfgWrapper::get();
(gdb) bt
#0  psp::PrintFontManager::Substitute (this=0xb6d91140, rPattern=...,
rMissingCodes=)
at /home/opt/libreoffice/core/vcl/generic/fontmanager/fontconfig.cxx:754
#1  0xb6bbdfbf in GetFcSubstitute (rFontSelData=..., rMissingCodes=) at
/home/opt/libreoffice/core/vcl/generic/fontmanager/fontsubst.cxx:121
#2  0xb6bbe1dc in FcPreMatchSubstititution::FindFontSubstitute
(this=0xb6d8f544, rFontSelData=...)
at /home/opt/libreoffice/core/vcl/generic/fontmanager/fontsubst.cxx:158
#3  0xb6a98e72 in ImplDevFontList::ImplFindByFont (this=0x8502400, rFSD=...,
bPrinter=false, pDevSpecific=0x0)
at /home/opt/libreoffice/core/vcl/source/gdi/outdev3.cxx:2501
#4  0xb6a9b3cd in ImplFontCache::GetFontEntry (this=0x84fbdb0,
pFontList=0x8502400, aFontSelData=..., pDevSpecific=0x0)
at /home/opt/libreoffice/core/vcl/source/gdi/outdev3.cxx:2364
#5  0xb6a9bb71 in ImplFontCache::GetFontEntry (this=0x84fbdb0,
pFontList=0x8502400, rFont=..., rSize=..., fExactHeight=37.585,
pDevSpecific=
0x0) at /home/opt/libreoffice/core/vcl/source/gdi/outdev3.cxx:2339
#6  0xb6a9bce0 in ImplNewFont (this=0x86f6a60) at
/home/opt/libreoffice/core/vcl/source/gdi/outdev3.cxx:3024
#7  OutputDevice::ImplNewFont (this=0x86f6a60) at
/home/opt/libreoffice/core/vcl/source/gdi/outdev3.cxx:2979
#8  0xb6a9dc9c in OutputDevice::GetTextHeight (this=0x86f6a60) at
/home/opt/libreoffice/core/vcl/source/gdi/outdev3.cxx:5664
#9  0xb03e470c in SvxFont::QuickGetTextSize (this=0xbfffb3b4, pOut=0x86f6a60,
rTxt=LARGE ENOUGH TO DELIVER, FOCUSED ENOUGH TO CARE., nIdx=0, 
nLen=48, pDXArray=0x93f1d20) at
/home/opt/libreoffice/core/editeng/source/items/svxfont.cxx:437
#10 0xb03b6ee1 in ImpEditEngine::CreateLines (this=0x93f1e48, nPara=0,
nStartPosY=0)
at /home/opt/libreoffice/core/editeng/source/editeng/impedit3.cxx:1042
#11 0xb03b83a7 in ImpEditEngine::FormatDoc (this=0x93f1e48) at
/home/opt/libreoffice/core/editeng/source/editeng/impedit3.cxx:406
#12 0xb03bb289 in FormatAndUpdate (pCurView=0x0, this=0x93f1e48) at
/home/opt/libreoffice/core/editeng/source/editeng/impedit3.cxx:4035
#13 ImpEditEngine::FormatAndUpdate (this=0x93f1e48, pCurView=0x0) at
/home/opt/libreoffice/core/editeng/source/editeng/impedit3.cxx:4026
#14 0xb038a0b2 in EditEngine::SetUpdateMode (this=0x93da980, bUpdate=1 '\001')
at /home/opt/libreoffice/core/editeng/source/editeng/editeng.cxx:1188
#15 0xb007be32 in SvxTextEditSourceImpl::unlock (this=0x93da770) at
/home/opt/libreoffice/core/svx/source/unodraw/unoshtxt.cxx:908
#16 0xb006edd6 in SvxShapeText::unlock (this=0xacc0c290) at
/home/opt/libreoffice/core/svx/source/unodraw/unoshape.cxx:4161
#17 0xb006fd1e in SvxShape::removeActionLock (this=0xacc0c290) at
/home/opt/libreoffice/core/svx/source/unodraw/unoshape.cxx:3944
#18 0xad155bc9 in oox::drawingml::Shape::createAndInsert (this=0x93ef298,
rFilterBase=..., rServiceName=com.sun.star.drawing.CustomShape, 
pTheme=0x9199be0, rxShapes=..., bClearText=0 '\000',
aParentTransformation=...)
at /home/opt/libreoffice/core/oox/source/drawingml/shape.cxx:562
#19 0xad1c2d14 in oox::ppt::PPTShape::addShape (this=0x93ef298,
rFilterBase=..., rSlidePersist=..., pTheme=0x9199be0, rxShapes=..., 
aTransformation=..., pShapeRect=0x0, pShapeMap=0x93b9a90) at
/home/opt/libreoffice/core/oox/source/ppt/pptshape.cxx:296
#20 0xad1ca166 in oox::ppt::SlidePersist::createXShapes (this=0x93b99d0,
rFilterBase=...)
at /home/opt/libreoffice/core/oox/source/ppt/slidepersist.cxx:155
#21 0xad1c655f in oox::ppt::PresentationFragmentHandler::finalizeImport
(this=0xa45d2d60)
at
/home/opt/libreoffice/core/oox/source/ppt/presentationfragmenthandler.cxx:267
#22 0xacf3c028 in oox::core::FragmentHandler2::endDocument (this=0xa45d2d60)
at /home/opt/libreoffice/core/oox/source/core/fragmenthandler2.cxx:66
#23 0xa334dd8d in sax_fastparser::FastSaxParser::parseStream (this=0xa45cf5dc,
maStructSource=...)
at /home/opt/libreoffice/core/sax/source/fastparser/fastparser.cxx:479
#24 0xacf3441d in oox::core::FastParser::parseStream (this=0x8a532d0,
rInputSource=..., bCloseStream=false)
at /home/opt/libreoffice/core/oox/source/core/fastparser.cxx:121
#25 0xacf344e2 in oox::core::FastParser::parseStream (this=0x8a532d0,
rxInStream=..., rStreamName=ppt/presentation.xml, bCloseStream=false)
---Type return to continue, or 

[Libreoffice-bugs] [Bug 44719] extremely slow import of pptx ...

2012-01-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=44719

--- Comment #2 from Michael Meeks michael.me...@novell.com 2012-01-12 
05:53:56 UTC ---
10Mb of callgrind output at:
http://users.freedesktop.org/~michael/3-5-pptx-import.callgrind.gz too ...

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs