Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve Runtime by reshaping the DataAssociation #411

Merged
merged 7 commits into from
Jan 7, 2025

Conversation

tizianoGuadagnino
Copy link
Collaborator

@tizianoGuadagnino tizianoGuadagnino commented Dec 4, 2024

Motivation

By simply switching the Correspondences to a tbb::concurrent_vector and performing the DataAssocation with a parallel_for instead of using a reduction, the pipeline's runtime decreased by 25% when I ran it in a single thread. The fantastic side effect is that the code is also much more readable.

Results

Main

runtime_warehouse_medium_main

This PR

runtime_warehouse_medium_pr

This is a follow-up PR from #410

@tizianoGuadagnino tizianoGuadagnino changed the base branch from main to tiziano/reduce_allocations December 4, 2024 18:03
@tizianoGuadagnino tizianoGuadagnino self-assigned this Dec 4, 2024
Base automatically changed from tiziano/reduce_allocations to main January 7, 2025 10:19
@tizianoGuadagnino tizianoGuadagnino merged commit c78cd6c into main Jan 7, 2025
18 checks passed
@tizianoGuadagnino tizianoGuadagnino deleted the tiziano/concurrent_vector branch January 7, 2025 10:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants