Skip to content

Remove future_lapply from AnnoySearch#10426

Draft
anashen wants to merge 3 commits into
mainfrom
fix/multicore-support-il
Draft

Remove future_lapply from AnnoySearch#10426
anashen wants to merge 3 commits into
mainfrom
fix/multicore-support-il

Conversation

@anashen

@anashen anashen commented Jul 14, 2026

Copy link
Copy Markdown
Member

IntegrateLayers hangs on multicore plans (reported at #10420 and confirmed)

IntegrateLayers(..., method = RPCAIntegration) goes through FindIntegrationAnchors(), which already parallelizes pairwise anchor computations with future. Inside that path, AnnoySearch was also using future_lapply().

With a multicore plan and workers > 1, this creates a nested future/fork situation, likely the cause of the hang.

More details will be added here when marked ready for review.

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