8000 parallel CreateHalfedges by pca006132 · Pull Request #1188 · elalish/manifold · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

parallel CreateHalfedges #1188

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

Merged
merged 2 commits into from
Mar 13, 2025
Merged

parallel CreateHalfedges #1188

merged 2 commits into from
Mar 13, 2025

Conversation

pca006132
Copy link
Collaborator

This turns out to be quite simple to parallelize. Not a huge gain though.

Copy link
codecov bot commented Mar 13, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.62%. Comparing base (d4439bc) to head (07fec49).
Report is 3 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1188   +/-   ##
=======================================
  Coverage   91.62%   91.62%           
=======================================
  Files          32       32           
  Lines        6067     6069    +2     
=======================================
+ Hits         5559     5561    +2     
  Misses        508      508           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Owner
@elalish elalish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

src/impl.cpp Outdated

#if MANIFOLD_PAR == 1
Vec<std::pair<int, int>> ranges;
int increment = std::min(
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

const?

src/impl.cpp Outdated
};
int end = 0;
while (end < numEdge) {
int start = end;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

const?

src/impl.cpp Outdated
}
for_each(ExecutionPolicy::Par, ranges.begin(), ranges.end(),
[&](const std::pair<int, int>& range) {
auto [start, end] = range;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wow, this syntax is starting to look like TS! C++ is definitely improving.

@pca006132 pca006132 merged commit 1f18803 into master Mar 13, 2025
27 checks passed
@pca006132 pca006132 deleted the parallel-createhalfedges branch March 13, 2025 07:25
@elalish elalish mentioned this pull request May 14, 2025
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.

2 participants
0