Skip to content

report runs >15 min in object_rules._fovs_until when one field is an outlier #646

Backlog

Description

@guijacquemet

Found while working on #645 (Stable-1 report risks), 24 Nov 2026, on main c25c4e9. Not yet minimised.

What: on the v27 export fixture, raising one field's x by 100 makes report run for more than 15 minutes in object_rules._fovs_until, called from control_checks. The same run takes about 2 s without the outlier.

Why it matters: the owner's Stable 1 pipeline runs report and html_report from MorphoFeature's end-to-end notebook in Colab. A single unusual field could make the report appear to hang, with no message.

To do:

  • Reproduce with a minimal fixture and profile _fovs_until, looking for a loop that re-scans or re-sorts for each field.
  • Fix the complexity without changing any result. Show identical outputs before and after on the existing fixtures, with a benchmark. No speed claim without one.
  • Add a test with a time bound or an operation count.

Related: #601 (96 s for 337 cells).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions