summaryrefslogtreecommitdiff
path: root/embeddedobj
diff options
context:
space:
mode:
authorTobias Lippert <drtl@fastmail.fm>2015-07-31 19:49:46 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2015-08-25 13:30:06 +0000
commit1979c48bf96bc1fd8f3558b6c9970935ddd79723 (patch)
treef479d3c79537b0bd209e2f9707e5b050186947b4 /embeddedobj
parentd4310b6cd8a367666cc702c3e47cf12a35407ef7 (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