From 3a6c5a2fbdebc1121de7bd65ddc776e08091d339 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Wed, 23 Mar 2022 17:29:56 -0400 Subject: [PATCH] Try supporting reuse of path allocation --- piker/ui/_curve.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/piker/ui/_curve.py b/piker/ui/_curve.py index da2e6d23..2aeb60cf 100644 --- a/piker/ui/_curve.py +++ b/piker/ui/_curve.py @@ -376,7 +376,6 @@ class FastAppendCurve(pg.PlotCurveItem): self.xData = None ## raw values self.yData = None self._renderSegmentList = None - # self.path = None self.fillPath = None self._fillPathList = None self._mouseShape = None @@ -389,6 +388,10 @@ class FastAppendCurve(pg.PlotCurveItem): self.path.clear() self._redraw = True + # XXX: if not trying to leverage `.reserve()` allocs + # then you might as well create a new one.. + # self.path = None + def disable_cache(self) -> None: ''' Disable the use of the pixel coordinate cache and trigger a geo event.