Skip to content

perf: use a set for pivot-column lookups#75

Open
Stephen0512 wants to merge 1 commit into
TensorBFS:mainfrom
Stephen0512:main
Open

perf: use a set for pivot-column lookups#75
Stephen0512 wants to merge 1 commit into
TensorBFS:mainfrom
Stephen0512:main

Conversation

@Stephen0512

Copy link
Copy Markdown

This PR creates a set from pivot_cols for repeated membership checks while building pivot-row mappings and candidate solutions.

The original list may retain meaningful ordering, while the set provides average O(1) membership checks instead of O(n). This improves lookup performance without changing the existing behavior.

The issue was identified during an ongoing research project.

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.

1 participant