To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=114039 Issue #|114039 Summary|getEmbeddedObject() call takes too long on formula Component|framework Version|OOo 3.2 Platform|PC URL| OS/Version|Linux Status|UNCONFIRMED Status whiteboard| Keywords| Resolution| Issue type|DEFECT Priority|P4 Subcomponent|code Assigned to|tm Reported by|jrheinlaender
------- Additional comments from [email protected] Sun Aug 22 06:58:28 +0000 2010 ------- Iterating through all formulas in a text document takes too long. For example, I have a document with >150 formulas and it takes 30 seconds to read the formula text of every formula, without even modifying it. The time is spent in uno::Reference< lang::XComponent > SwXTextEmbeddedObject::getEmbeddedObject(void) (see file sw/source/core/unocore/unoframe.cxx) and specifically while switching the embeddedObject from state LOADED to state RUNNING: if ( svt::EmbeddedObjectRef::TryRunningState( xIP ) ) 1. Why does it take so long to switch to state RUNNING? 2. If this cannot be avoided, why does the embeddedObject need to be switched to state RUNNING every time I iterate through the document? In other words, why does it fall back to LOADED automatically after I read the formula text and went on to the next formula? 3. com/sun/star/embed/EmbedMisc.hdl has MS_EMBED_ALWAYSRUN. Coudl this be set by default for formula embeddedObjects and maybe resolve the problem? --------------------------------------------------------------------- Please do not reply to this automatically generated notification from Issue Tracker. Please log onto the website and enter your comments. http://qa.openoffice.org/issue_handling/project_issues.html#notification --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
