use vectors to build up point data, instead of Sequence

Desktop / LibreOffice - Noel Grandin [collabora.co.uk] - 11 January 2022 16:35 UTC

which shaves 1% off the load time of a large chart

Change-Id: Ieb8f029f760f41c3bef63bbc4cd221c1473f0f49 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128283

f242cc6d5be5 use vectors to build up point data, instead of Sequence
chart2/source/inc/BaseGFXHelper.hxx | 2 +
chart2/source/inc/CommonConverters.hxx | 20 +-
chart2/source/tools/BaseGFXHelper.cxx | 32 ++
chart2/source/tools/CommonConverters.cxx | 138 ++++++--
chart2/source/view/axes/VCartesianGrid.cxx | 12 +-
chart2/source/view/charttypes/AreaChart.cxx | 197 +++++------
chart2/source/view/charttypes/AreaChart.hxx | 10 +-
chart2/source/view/charttypes/BarChart.cxx | 12 +-
chart2/source/view/charttypes/CandleStickChart.cxx | 12 +-
chart2/source/view/charttypes/NetChart.cxx | 31 +-
chart2/source/view/charttypes/NetChart.hxx | 6 +-
chart2/source/view/charttypes/Splines.cxx | 374 +++++++++++++++++++++
chart2/source/view/charttypes/Splines.hxx | 11 +
chart2/source/view/charttypes/VSeriesPlotter.cxx | 10 +-
chart2/source/view/inc/Clipping.hxx | 6 +
chart2/source/view/inc/PlottingPositionHelper.hxx | 1 +
chart2/source/view/inc/ShapeFactory.hxx | 17 +-
chart2/source/view/inc/VDataSeries.hxx | 3 +-
chart2/source/view/main/Clipping.cxx | 124 +++++++
chart2/source/view/main/PlottingPositionHelper.cxx | 19 ++
chart2/source/view/main/ShapeFactory.cxx | 213 +++++++++++-
chart2/source/view/main/VDataSeries.cxx | 4 +-
22 files changed, 1052 insertions(+), 202 deletions(-)

Upstream: cgit.freedesktop.org


  • Share