Bugzilla – Attachment 110391 Details for
Bug 81501
SORT: Large memory footprint while sorting a large table
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to fix memory use issue while sorting in Calc
sort_memory_fix.patch (text/plain), 631 bytes, created by
supremearyal
on 2014-12-03 06:12:54 UTC
(
hide
)
Description:
Patch to fix memory use issue while sorting in Calc
Filename:
MIME Type:
Creator:
supremearyal
Created:
2014-12-03 06:12:54 UTC
Size:
631 bytes
patch
obsolete
>diff --git a/sc/source/core/data/table3.cxx b/sc/source/core/data/table3.cxx >index f808db5..12dd549 100644 >--- a/sc/source/core/data/table3.cxx >+++ b/sc/source/core/data/table3.cxx >@@ -1339,6 +1339,8 @@ void ScTable::Sort( > if (rSortParam.bByRow) > { > SCROW nLastRow = 0; >+ while (aSortParam.nCol2 > aSortParam.nCol1 && aCol[aSortParam.nCol2].GetLastDataPos() == 0) >+ --aSortParam.nCol2; > for (SCCOL nCol = aSortParam.nCol1; nCol <= aSortParam.nCol2; nCol++) > nLastRow = std::max(nLastRow, aCol[nCol].GetLastDataPos()); > nLastRow = std::min(nLastRow, aSortParam.nRow2);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 81501
:
103049
|
103050
|
106212
| 110391