Skip to content

SPRDist optimizations #174

Open
Open

Description

@ms609
  • Early exit in LAPJV
  • Early exit in mutualclusterinfo
  • use PolEscapa rogue detector as drop selector
  • 7-leaf exact precache shortcut

Activity

  1. ms609 commented on Oct 12, 2026

    @ms609
    OwnerAuthor

    Status: 1 of 4 done.

    • 7-leaf exact shortcut: .SPRExact7() uses a precomputed table (src/spr/lookup_table_7.h, spr_table_7()), alongside the 4-, 5- and 6-leaf shortcuts in .SPRRogue().
    • Early exit in LAPJV. lap() has no cost bound or cutoff argument.
    • Early exit in mutual clustering info. mutual_clustering_score() only exits early when every split matches exactly; there is no bound against the best leave-one-out score so far.
    • PolEscapa rogue detector as drop selector. .SPRRogue() still scores each leaf by leave-one-out ProxyDistance (option sprProxy).

    VTune profiling (.AGENTS/memory/Optimizations.md, "SPR Distance Profiling") found that reduce_trees iteration dominates. The early-exit items may therefore give limited gains.


    Generated by Claude Code

  2. ms609-agent commented on Oct 19, 2026

    @ms609-agent
    Collaborator

    Status update: 3 of 4 settled.

    Details: .AGENTS/memory/Optimizations.md ("SPR Rogue early exits", "Rogue SPR: parent dual prices") and dev/rogue_mci_bound_findings.md. The next lever recorded there is building child cost matrices incrementally from the parent; the fill is now 37–55% of runtime.


    Generated by Claude Code

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions