[Bug] Metrics pages is slow to load

Created by: olkham

🧩 Issue type

Bug 🐞

📄 Description

Model metrics page is slow to load and makes the UI slow

📋 Steps to reproduce (if applicable)

  1. train a large or complex project that creates plots with lots of points on the x-axis
  2. try to view the metrics
  3. takes 15sec
  4. try to navigate away during this time and it's unresponsive

💻 Expected behavior

Page should be snappy to load, in the event of slow load times the UI should still be navigable

🖼️ Screenshots, video recordings or logs

No response

📦 Geti version

2.12.1

Hardware

i9 14900, 128GB

🖥️ Operating System

Win11

Browser (if applicable)

Chrome

Python Version (if relevant)

No response

Additional context

No response