Try supporting reuse of path allocation

big_data_lines
Tyler Goodlet 2022-03-23 17:29:56 -04:00
parent 88a7314bd0
commit 3a6c5a2fbd
1 changed files with 4 additions and 1 deletions

View File

@ -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.