Skip to content

perf(orchestrator): batch TelemetryStore lock acquisitions #785

@AlexMikhalev

Description

@AlexMikhalev

Context

Two TelemetryStore methods acquire the RwLock more often than necessary:

  1. all_model_performances() acquires N+2 read locks for M models (inconsistent snapshot possible)
  2. record_telemetry() acquires write lock once per event instead of batching

Proposed fix

  1. Single read lock pass in all_model_performances()
  2. New record_batch() method with single write lock

Refs #537 (Gitea), Refs #523

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions