Issue 16280 - Chart Generation/Resizing Painfully Slow
Summary: Chart Generation/Resizing Painfully Slow
Status: CLOSED FIXED
Alias: None
Product: General
Classification: Code
Component: chart (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: All All
: P3 Trivial with 7 votes (vote)
Target Milestone: ---
Assignee: kla
QA Contact: issues@graphics
URL:
Keywords: oooqa
: 15689 16449 17919 19615 19627 19741 19993 20326 20656 20749 21445 22593 25081 27185 30962 31671 32318 36627 36773 36795 41300 41566 42336 44287 45878 52550 52925 55413 57163 58456 61976 64424 72865 (view as issue list)
Depends on:
Blocks:
 
Reported: 2003-07-01 11:00 UTC by Unknown
Modified: 2013-02-24 21:21 UTC (History)
7 users (show)

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


Attachments
Sample Writer Document With Embedded Chart (135.47 KB, application/octet-stream)
2003-07-01 11:02 UTC, Unknown
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description Unknown 2003-07-01 11:00:02 UTC
Generating a chart with about 10,000 elements in Calc takes absolutely forever - in the region of  
100 times slower than in MS Excel for the exact same task. Excel takes a fraction of a second,  
Calc takes over 1 minute. Stretching the chart takes even longer. Copying a chart to the  
clipboard also takes a similar amount of time. So does pasting, especially into Writer. Open a  
document with a single embedded chart takes a minute or two. Now imagine what happens if you  
need a document with, say, 20-30 charts... 
 
This has been cross-checked between RedHat 7.0, RedHat 9.0, OpenOffice 1.0.2, and 
OpenOffice 1.1beta2 (all 4 combinations). Results are the same on all of them.
Comment 1 Unknown 2003-07-01 11:02:12 UTC
Created attachment 7297 [details]
Sample Writer Document With Embedded Chart
Comment 2 kla 2003-07-01 14:14:55 UTC
Hi,
pls. see: http://graphics.openoffice.org/chart/featurewishes.html
We work on it, so i close it.
Comment 3 kla 2003-07-01 14:15:12 UTC
closed
Comment 4 kla 2003-08-25 10:15:00 UTC
*** Issue 17919 has been marked as a duplicate of this issue. ***
Comment 5 kla 2003-08-25 10:15:20 UTC
*** Issue 17919 has been marked as a duplicate of this issue. ***
Comment 6 kla 2003-09-16 09:55:50 UTC
*** Issue 19627 has been marked as a duplicate of this issue. ***
Comment 7 bjoern.milcke 2003-09-16 10:48:24 UTC
*** Issue 19615 has been marked as a duplicate of this issue. ***
Comment 8 john.marmion 2003-09-18 14:23:22 UTC
*** Issue 19741 has been marked as a duplicate of this issue. ***
Comment 9 kla 2003-09-26 09:18:44 UTC
*** Issue 19993 has been marked as a duplicate of this issue. ***
Comment 10 kla 2003-09-30 10:15:12 UTC
*** Issue 20326 has been marked as a duplicate of this issue. ***
Comment 11 kla 2003-10-06 11:45:08 UTC
*** Issue 20656 has been marked as a duplicate of this issue. ***
Comment 12 frank 2003-10-06 12:00:00 UTC
*** Issue 20749 has been marked as a duplicate of this issue. ***
Comment 13 kla 2003-11-03 15:07:10 UTC
*** Issue 21445 has been marked as a duplicate of this issue. ***
Comment 14 kla 2003-11-18 11:56:33 UTC
*** Issue 22593 has been marked as a duplicate of this issue. ***
Comment 15 kla 2004-02-05 10:33:19 UTC
*** Issue 25081 has been marked as a duplicate of this issue. ***
Comment 16 rlk 2004-02-17 01:48:36 UTC
One workaround I found was to turn off labels on the X axis.  I've created a
spreadsheet with 6 charts with about 800 elements on the X axis (2+ year time
series).  Recalculating the spreadsheet took about 5 minutes on a 1 GHz system.
 Turning off labels on the X axis allows the spreadsheet to recalculate in about
5 seconds.  This is with OOo 1.1.0.

If it matters, I could determine whether the behavior is linear or quadratic (I
believe it's linear).

I don't quite understand why this issue has been closed if it hasn't been
integrated (it's also not entirely clear to me exactly which item in the feature
wishes this is).  However, since I've only just registered, it may not be my
place to comment on the process...
Comment 17 niklas.nebel 2004-02-27 11:19:15 UTC
*** Issue 16449 has been marked as a duplicate of this issue. ***
Comment 18 kla 2004-04-06 11:17:47 UTC
*** Issue 27185 has been marked as a duplicate of this issue. ***
Comment 19 utomo99 2004-05-12 06:14:08 UTC
utomo > kla:
I did not find reason for this issue as invalid. also in View issue activity.
I think it is not invalid but duplicate to internal issue number. and it still 
targetted as 2.0. 
Do I mis anything ? 
I only found your comments:
------- Additional comments from kla Tue Jul 1 06:14:55 -0700 2003 -------

Hi,
pls. see: http://graphics.openoffice.org/chart/featurewishes.html
We work on it, so i close it.
Comment 20 IngridvdM 2004-05-14 11:30:32 UTC
I think it is really wrong having this closed. I will take it.
Comment 21 IngridvdM 2004-05-14 11:32:46 UTC
accept
Comment 22 IngridvdM 2004-05-14 11:36:31 UTC
accepted
Comment 23 kla 2004-07-02 13:52:40 UTC
*** Issue 30962 has been marked as a duplicate of this issue. ***
Comment 24 frank 2004-08-02 09:48:13 UTC
*** Issue 32318 has been marked as a duplicate of this issue. ***
Comment 25 Martin Hollmichel 2004-08-09 14:04:16 UTC
according to http://www.openoffice.org/servlets/ReadMsg?list=releases&msgNo=7690
this issue will be set to OOoLater
Comment 26 kla 2004-08-11 14:32:19 UTC
*** Issue 31671 has been marked as a duplicate of this issue. ***
Comment 27 john.marmion 2004-09-15 16:46:55 UTC
*** Issue 15689 has been marked as a duplicate of this issue. ***
Comment 28 kla 2004-11-04 09:09:01 UTC
*** Issue 36627 has been marked as a duplicate of this issue. ***
Comment 29 kla 2004-11-12 11:01:35 UTC
*** Issue 36795 has been marked as a duplicate of this issue. ***
Comment 30 kla 2004-11-12 11:38:22 UTC
*** Issue 36773 has been marked as a duplicate of this issue. ***
Comment 31 oc 2005-01-26 10:18:21 UTC
*** Issue 41300 has been marked as a duplicate of this issue. ***
Comment 32 kla 2005-01-31 09:09:50 UTC
*** Issue 41566 has been marked as a duplicate of this issue. ***
Comment 33 kla 2005-02-16 09:24:09 UTC
*** Issue 42336 has been marked as a duplicate of this issue. ***
Comment 34 kla 2005-03-09 15:19:30 UTC
*** Issue 44287 has been marked as a duplicate of this issue. ***
Comment 35 kla 2005-03-31 11:37:33 UTC
*** Issue 45878 has been marked as a duplicate of this issue. ***
Comment 36 kla 2005-08-18 07:28:18 UTC
*** Issue 52925 has been marked as a duplicate of this issue. ***
Comment 37 kla 2005-08-19 11:11:44 UTC
*** Issue 52550 has been marked as a duplicate of this issue. ***
Comment 38 IngridvdM 2005-09-06 15:00:02 UTC
change target
Comment 39 jaked 2005-10-03 19:06:42 UTC
The same problem exists in OOo 2.0 RC1 with already 1000 rows and 2 columns.
Calc is terrible slow if you work on charts and therefore unusable.

Please don't release OOo 2.0 with such a bummer!

Jake
Comment 40 aziem 2005-10-04 03:13:44 UTC
*** Issue 55413 has been marked as a duplicate of this issue. ***
Comment 41 IngridvdM 2005-10-10 17:19:42 UTC
I am sorry that this Issue will not be fixed in OOo 2.0. The chart team is
concentrating on a complete redo of the chart module, which will allow us to fix
more bugs and introduce important new features in future. But in the meanwhile
only very little will happen at the old chart - I am sorry.
Comment 42 kla 2005-11-02 08:48:31 UTC
*** Issue 57163 has been marked as a duplicate of this issue. ***
Comment 43 dridgway 2005-12-21 08:04:52 UTC
*** Issue 58456 has been marked as a duplicate of this issue. ***
Comment 44 hwoarang 2006-01-02 16:09:23 UTC
*** Issue 58456 has been marked as a duplicate of this issue. ***
Comment 45 kla 2006-02-13 10:51:33 UTC
*** Issue 61976 has been marked as a duplicate of this issue. ***
Comment 46 kla 2006-04-18 10:57:53 UTC
*** Issue 64424 has been marked as a duplicate of this issue. ***
Comment 47 bjoern.milcke 2006-06-23 14:04:46 UTC
Changed Target to 2.x
Comment 48 kla 2006-07-03 14:15:38 UTC
*** Issue 66963 has been marked as a duplicate of this issue. ***
Comment 49 bobharvey 2006-07-03 15:53:38 UTC
I commend the attachements to issue 66963 to the developers.
They show a chart with 22 series of 10800 elements causing a crash with 
spurious out of error condition, and also compare memory usage with the 
principle competing product.

I am really surprised that 66963 has been pointed here, because I reported a 
defect - my example does, after all, crash Calc.  This is a mere enhancement.  
perhaps it should be upgraded to a defect?


Comment 50 utomo99 2006-07-04 10:36:22 UTC
This Issue already 3 years Old. and by the number of duplicate Issue, we need 
to solve this problems ASAP. 
So, please consider this Fixed for 2.04 or 2.05 instead of 2.X or 2.?

Thanks
Comment 51 IngridvdM 2006-07-04 10:40:40 UTC
->bobharvey: I reopened the issue 66963 to handle the crash. The remaining
performance problem will be handled here. Thanks a lot for the great example
document and bug description!
Comment 52 IngridvdM 2006-07-04 10:43:46 UTC
->utomo99: The chart is currently reimplemented from scratch to enable further
enhancements and fixes as the old code base has become unmaintainable. This
reimplementation is the thing that needs to be done ASAP first - sorry.
Comment 53 utomo99 2006-07-04 11:04:16 UTC
>> Iha: Thanks. I hope we can get the team working on this issue after that. 
after almost 1 year  of the previous comments, I hope team make a lot of fixs 
on the Chart. 
Thanks

------- Additional comments from iha Mon Oct 10 09:19:42 -0700 2005 -------

I am sorry that this Issue will not be fixed in OOo 2.0. The chart team is
concentrating on a complete redo of the chart module, which will allow us to 
fix more bugs and introduce important new features in future. But in the 
meanwhile only very little will happen at the old chart - I am sorry.
Comment 54 kla 2006-12-28 09:02:10 UTC
*** Issue 72865 has been marked as a duplicate of this issue. ***
Comment 55 bobharvey 2007-08-30 13:25:07 UTC
New chart module is imminent - has this been fixed in it?

And issue 66963?
Comment 56 jonheine 2007-10-20 14:48:16 UTC
I am trying to do a 3d "Deep" plot, 30 rows and 30 columns Every time I change
one of the diagram properties it takes quite some time.

One thing I did to speed things up was to create the initial chart as 2x2, make
changes to the chart/diagram. Then called chart.SetRanges(RangeAddress()) with
correct range to create the chart. This make it bearable.

It seems that the chart is being re-drawn after each property change. It would
be nice to have a method/property called "Refresh" that would tell the object
not to redraw while making property changes.
Comment 57 rlk 2007-10-20 15:06:52 UTC
I've also noticed that charts are updated when cell contents change, even if
auto-recalculate is turned off.  I would expect that with auto-recalculate
turned off that nothing -- including charts -- would be updated until I manually
recalculate.
Comment 58 Regina Henschel 2007-10-20 18:42:55 UTC
@jonheine: Do you use a version which has got the new chart module?
Comment 59 bjoern.milcke 2007-10-23 16:32:40 UTC
->jonheine: It sounds like you use a macro for creating the chart? In that case
you can stop view updates while changing the model with XModel::lockControllers
and XModel::unlockControllers. The last call will then renew the view once.
Comment 60 IngridvdM 2007-11-30 12:25:15 UTC
In OOo 2.3 the chart module is completely rewritten. Within the new chart I did
several performance improvements. The major two affecting the most examples here
are:
1) When for a given resolution a data point would be on the same pixel as its
predecessor than no shape is created for the display. This reduces the amount of
shapes to be rendered enormously when the data has any continuity.
2) When creating a category chart (bar, line etc. ) for thousands of points
there are not any longer created thousands of text labels at the axis, which
also reduces the rendering time significantly.

Here are some example measurements to demonstrate the improvement:
A) Loading attached example IssueReport.sxw on my windows pc takes
~3s in OOo2.3 instead of ~43 s in OOo2.2
B) Loading file.xls attached at duplicate issue 19741 takes
3s in OOo2.3 instead of 100s in OOo2.2
C) Loading file 363.xls from issue 20326 takes
13s instead of 65s
D) Loadinf file CDMA.sxc from issue 16449 and switching to sheet 1 takes
6s instead of 100s
E) Loading file muzyka.xls from issue 30962 takes
4s instead of 160s
F) Loading file test.xls from issue 32318 takes
2s instead of 62s

The concrete gain in speed depends on the concrete scenario. But roughly the new
chart is an order of magnitude faster than the old one when having many data points.
So I set this issue to fixed.
When there is further demand for speed up please submit a separate issue. Thanks
for your patience during the phase of chart re-implementation.
Comment 61 IngridvdM 2007-11-30 14:12:23 UTC
->Thomas, please verify in the master for OOo 2.3..
Note for current state on the way to OOo 2.4:
Unfortunately starting with version src680m234/235 the performance is slightly
decreased again caused by a global change in loading of libraries somewhere in
framework code. That performance decrease is targeted already with issue 83243.
I checked the times measured above in OOo 2.3 and SRC680m233. They are the same.
So to verify this issue also on the current master you might want to use a
version <= SRC680m233 or wait until issue 83243 is fixed.
Comment 62 kla 2007-12-03 10:18:16 UTC
Verified on the base of the examples
Comment 63 kla 2007-12-05 12:34:07 UTC
closed