Skip to content

Investigate CONN performance optimizations #138

Open

Description

@NiklasMelton

Motivation

The performance work tracked by #128 measures CONN but explicitly excludes it from optimization. CONN has distinct costs in prototype fitting or learning, nearest-prototype lookup, adjacency updates, and metric recomputation.

Investigation

  • Profile batch KMeans/MiniBatchKMeans and incremental Fuzzy paths separately on representative sample, feature, prototype, and cluster counts.
  • Attribute time and memory to prototype fitting or learning, best and second-best matching unit search, connectivity bookkeeping, and score updates. In particular, inspect the per-sample scan in _update_conn_from_centroids and repeated metric work.
  • Prototype the most promising changes and compare against the current implementation with fixed data, seeds, model settings, and equivalent scores.
  • Preserve CONN's existing prototype and scoring semantics; document any tradeoffs and dependency-specific behavior.

Done when

Record a reproducible profile and either land a validated improvement or identify the highest-value follow-up change with measured evidence.

Activity

  1. added
    enhancement
    on Sep 25, 2026
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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions