Closed andrewRowlinson closed 1 year ago
There is a problem when mplsoccer is combined with Streamlit. The amount of memory keeps increasing when creating new charts. It seems to be caused by the custom handlers.
https://github.com/andrewRowlinson/mplsoccer/blob/d9956e81e85af31a4d32bad4986338580f83b43d/mplsoccer/linecollection.py#L178
https://github.com/andrewRowlinson/mplsoccer/blob/d9956e81e85af31a4d32bad4986338580f83b43d/mplsoccer/quiver.py#L113
Is there a better way of doing this?
Fixed by #55
https://github.com/andrewRowlinson/mplsoccer/blob/8bdf59e267fb51efbeaa95e0e47c52b6bfbfcd7a/mplsoccer/linecollection.py#L178
https://github.com/andrewRowlinson/mplsoccer/blob/8bdf59e267fb51efbeaa95e0e47c52b6bfbfcd7a/mplsoccer/quiver.py#L113
There is a problem when mplsoccer is combined with Streamlit. The amount of memory keeps increasing when creating new charts. It seems to be caused by the custom handlers.
https://github.com/andrewRowlinson/mplsoccer/blob/d9956e81e85af31a4d32bad4986338580f83b43d/mplsoccer/linecollection.py#L178
https://github.com/andrewRowlinson/mplsoccer/blob/d9956e81e85af31a4d32bad4986338580f83b43d/mplsoccer/quiver.py#L113
Is there a better way of doing this?