Use orjson python package to improve performance ?
See https://plotly.com/python/renderers/#performance
For now, it is not usable "as is" because orjson is not capable of serializing Date objects by default.
Converting date objects with isoformat() method in get_dates_range() seems to work. But we need to have bigger datasets to see if performance improvement is real
Edited by Simon Panay