diff options
author | Tobias Lippert <drtl@fastmail.fm> | 2015-07-31 19:49:46 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2015-08-25 13:30:06 +0000 |
commit | 1979c48bf96bc1fd8f3558b6c9970935ddd79723 (patch) | |
tree | f479d3c79537b0bd209e2f9707e5b050186947b4 /embeddedobj | |
parent | d4310b6cd8a367666cc702c3e47cf12a35407ef7 (diff) |
tdf#68016 Speed up ScChart2DataSequence by caching addresses
The lookup of getNumberFormatKeyByIndex() is sped up by storing the
addresses into the cached data array m_aDataArray.
The existing cache invalidating strategy should hold since the
cache was already storing information about hidden fields and
ranges, which is the information which affects the addresses.
Also: Change data type of m_aDataArray from std::list to std::vector to
allow index-based access.
Also: Change for-loops over m_aDataArray to range-based loops with auto
variables to make them more readable
Change-Id: I9a5038892a384e7d5e72556a52faaf98b475a839
Reviewed-on: https://gerrit.libreoffice.org/16485
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Eike Rathke <erack@redhat.com>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'embeddedobj')
0 files changed, 0 insertions, 0 deletions