GNOME Bugzilla – Bug 691984
Generated regression formulas spend ages in SUMSQ
Last modified: 2013-01-20 17:51:05 UTC
The spreadsheet over in bug 691913 spends ages re-computing SUMSQ of some area. Either we need to be smarter with common subexpressions -- a long term goal -- or else we should store that value somewhere on the sheet.
It's the residual's norm. sqrt(sumsq('Regression New'!$E$21:$E$2797) which, apart from being in one place, ought to use HYPOT.
or maybe just sqrt(c13) -- we already have that sum of squares there.
Created attachment 233711 [details] [review] Tentative patch This makes the generated sheets fast.
This patch seems reasonable.
This problem has been fixed in our software repository. The fix will go into the next software release. Thank you for your bug report. We can do 10000 data points without breaking a sweat now. I don't foresee any problems with even 1-2 orders of magnitude more data points than that.