Skip to content

Series construction is very slow #65

@nishikantparmariam

Description

@nishikantparmariam

Description

Construction of series objects is very slow even for array input. Our use-case requires adding multiple series to chart having ~10k points each. A single series seems to take 3 seconds.

Reproducer

from datetime import datetime
from highcharts_stock.chart import Chart
from highcharts_stock.highcharts import AreaSplineRangeSeries, LineSeries

x = list(map(datetime.fromtimestamp, range(630892800, 1686787200, 86400)))[:10000]
low = list(range(len(x)))
high = list(range(500, 500 + len(x)))
data = list(zip(x, low, high))
%%time

chart = Chart()
chart.add_series(AreaSplineRangeSeries(data=data))

image

Version

highcharts-stock == 1.7.0
highcharts-core == 1.8.2

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions