diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-04-18 00:29:55 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-04-23 21:08:20 -0400 |
commit | f4a075728f62f0083a4bffd40d3c02265082d962 (patch) | |
tree | ef2b4e5d8c32e50ecdb5d772eef8451eb24e86fb /sc/inc/column.hxx | |
parent | 210507039bc768aa1cf7013a31700b524d90aef7 (diff) |
Avoid using SwapRow() when sorting.
Instead, build a data table prior to sorting, swap rows in this data table
as we sort, then transfer the results back to the document in one step. This
significantly speeds up the sort performance.
Formula cells are yet to be handled. I'll work on that next.
Change-Id: I59bde1a243dc8940411d1a33eef147671b060cd0
Diffstat (limited to 'sc/inc/column.hxx')
-rw-r--r-- | sc/inc/column.hxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sc/inc/column.hxx b/sc/inc/column.hxx index 717da5ef3273..084461e65668 100644 --- a/sc/inc/column.hxx +++ b/sc/inc/column.hxx @@ -566,6 +566,7 @@ public: void RegroupFormulaCells(); void TransferCellValuesTo( SCROW nRow, size_t nLen, sc::CellValues& rDest ); + void TransferCellValuesFrom( SCROW nRow, sc::CellValues& rSrc ); void CopyCellValuesFrom( SCROW nRow, const sc::CellValues& rSrc ); #if DEBUG_COLUMN_STORAGE |