Issue 26003 - Formula being drawn extremely slowly in some cases
Summary: Formula being drawn extremely slowly in some cases
Status: CLOSED DUPLICATE of issue 27259
Alias: None
Product: Math
Classification: Application
Component: code (show other issues)
Version: OOo 1.1 RC5
Hardware: PC Windows 98
: P3 Trivial (vote)
Target Milestone: ---
Assignee: jack.warchold
QA Contact: issues@sw
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-01 11:11 UTC by openminded
Modified: 2013-08-07 14:54 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Document containing formulas (67.13 KB, application/vnd.sun.xml.writer)
2004-03-01 11:12 UTC, openminded
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description openminded 2004-03-01 11:11:15 UTC
NOTE: This might be a bug in the word processor and not the formula editor but
since the problem only arises in connection with formulas I think it's safer to
post it here.

In some cases OOO renders formulas extremely slowly. Sometimes I have to wait
for several minutes just to render a single formula. The cases are the following:

- when editing a formula inside a text document (updating auttomatically or
manually is slow)
- when pasting a formula from the clipboard into a text document
- when opening a document and showing a formula for the first time (and when
scrolling through the newly opened document for the first time)

In the following cases the formulas are rendered *much* faster:

- when editing a formula which is not a part of a text document (using
File->New->Formula)
- when scrolling through a document whose formulas have been rendered recently
(the first time I scroll through a document containing many formulas it is
extremely slow, but the second time it is much faster)

My CPU is an AMD K6-2 450 which isn't exactly state-of-the-art, so people with
modern CPUs might not be able to see hust how slow the rendering is using the
exaples presented here. For those people I recommend using more complex formulas
or slower computers.

Examples:

1. Select "File->New->Text Document". Then select "Insert->Object->Formula" and
enter the following formula:

left ( stack{a_1 # a_2 # a_3} right ) times left ( stack{b_1 # b_2 # b_3} right
)  = left ( stack{a_2 cdot b_3 - b_2 cdot a_3 # a_3 cdot b_1 - b_3 cdot a_1 #
a_1 cdot b_2 - b_1 cdot a_2}  right ) = left ( stack{a_1 # a_2 # a_3} right )
times left ( stack{b_1 # b_2 # b_3} right )  = left ( stack{a_2 cdot b_3 - b_2
cdot a_3 # a_3 cdot b_1 - b_3 cdot a_1 # a_1 cdot b_2 - b_1 cdot a_2}  right ) =
left ( stack{a_1 # a_2 # a_3} right ) times left ( stack{b_1 # b_2 # b_3} right
)  = left ( stack{a_2 cdot b_3 - b_2 cdot a_3 # a_3 cdot b_1 - b_3 cdot a_1 #
a_1 cdot b_2 - b_1 cdot a_2}  right ) 

2. Try copying it closing the formula editor, select your newly created formula
object, copy it and then paste it. You should notice how slow this is. For
comparison, select "File->New->Formula" and enter the formula above. You should
notice that this is ~10 times faster.

3. Open the attached document and scroll through it. You should notice how long
it takes to scroll through the document the first time (it takes several minutes
on my pc) compared to the second time you scroll through it.

BTW. I believe this could be caused by a bug in the word processor and not the
the fomula editor itself.
Comment 1 openminded 2004-03-01 11:12:25 UTC
Created attachment 13517 [details]
Document containing formulas
Comment 2 thomas.lange 2004-03-04 15:52:58 UTC
TL->MRU: Can you please try to reproduce this. Thanks!
Comment 3 jack.warchold 2004-03-08 17:25:44 UTC
can not confirm this here on winxp p3 700mhz.

will try to reproduce this on win98 on a p3 500mhz pc
Comment 4 jack.warchold 2004-03-08 18:41:23 UTC
confirmed on win98 on a p3 500 mhz. this document loads fast on this pc on win2k 
but slow as hell on win98. times up to 3 minutes and more for the document load 
and one minute an more before the formular will be visible.

will look for the developer responsible for this

reassigned to jw
Comment 5 michael.ruess 2004-03-09 09:32:04 UTC
Seems to me a duplicate of issue 21304 (slow processing of Formula objects on
Win98).
Comment 6 stefan.baltzer 2004-04-15 09:53:43 UTC
SBA: Issue 27259 is younger but almost "nailed down" and assigned to the right
developer. I will comment in there to check this case too.

*** This issue has been marked as a duplicate of 27259 ***
Comment 7 stefan.baltzer 2004-04-15 09:59:47 UTC
SBA: Done. Closed.