Skip to content

Improve Runtime by reshaping the DataAssociation#411

Merged
tizianoGuadagnino merged 7 commits intomainfrom
tiziano/concurrent_vector
Jan 7, 2025
Merged

Improve Runtime by reshaping the DataAssociation#411
tizianoGuadagnino merged 7 commits intomainfrom
tiziano/concurrent_vector

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