Skip to content

Reuse CSA crowding distance workspace#50

Merged
isty2e merged 1 commit into
mainfrom
fix/csa-crowding-workspace-reuse
Jul 2, 2026
Merged

Reuse CSA crowding distance workspace#50
isty2e merged 1 commit into
mainfrom
fix/csa-crowding-workspace-reuse

Conversation

@isty2e

@isty2e isty2e commented Jul 2, 2026

Copy link
Copy Markdown
Owner

Summary

  • Reuse a batch-local BankDistanceWorkspace across full-bank CSA observations and rebase it after append or replacement.
  • Skip clustering rebuilds when a batch leaves the bank unchanged.
  • Add regression coverage for rejected observations, append/replacement/removal rebasing, and unchanged clustering.

Notes

Changed-bank reclustering still computes linkage distances separately. This PR focuses on the redundant per-observation workspace rebuild and no-op reclustering paths from #34.

Fixes #34.

Validation

  • uv run --python 3.11 --extra test ruff check pyproject.toml src tests
  • uv run --python 3.11 --extra test basedpyright src tests
  • uv run --python 3.11 --extra test pytest tests -q

@isty2e isty2e merged commit 64aefec into main Jul 2, 2026
3 checks passed
@isty2e isty2e deleted the fix/csa-crowding-workspace-reuse branch July 2, 2026 22:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Medium] CSA crowding-aware update recomputes O(n^2) bank distances per observation

1 participant