Skip to content

Avoid extra Leiden mapping copies#30

Merged
adsharma merged 1 commit into
mainfrom
reduce-leiden-mapping-copies
May 1, 2026
Merged

Avoid extra Leiden mapping copies#30
adsharma merged 1 commit into
mainfrom
reduce-leiden-mapping-copies

Conversation

@adsharma
Copy link
Copy Markdown
Contributor

@adsharma adsharma commented May 1, 2026

Use references to the fine-to-coarse mapping while the newly created coarsened view owns it, then copy that mapping only once into composedMapping for flattening. This removes avoidable O(n) vector copies during each ParallelLeidenView coarsening handoff without changing ownership or partition semantics.

Use references to the fine-to-coarse mapping while the newly created
coarsened view owns it, then copy that mapping only once into
composedMapping for flattening. This removes avoidable O(n) vector
copies during each ParallelLeidenView coarsening handoff without
changing ownership or partition semantics.
@adsharma adsharma merged commit 688560e into main May 1, 2026
5 checks passed
@adsharma adsharma deleted the reduce-leiden-mapping-copies branch May 1, 2026 17:36
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