-
Notifications
You must be signed in to change notification settings - Fork 4
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
Use hcubature_buffer
for decomposed geometries
#157
Conversation
Benchmark Results
Benchmark PlotsA plot of the benchmark results have been uploaded as an artifact to the workflow run for this PR. |
f, | ||
rope::Meshes.Rope, | ||
rule::HAdaptiveCubature; | ||
FP::Type{T} = Float64, | ||
kwargs... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[JuliaFormatter] reported by reviewdog 🐶
f, | |
rope::Meshes.Rope, | |
rule::HAdaptiveCubature; | |
FP::Type{T} = Float64, | |
kwargs... | |
f, | |
rope::Meshes.Rope, | |
rule::HAdaptiveCubature; | |
FP::Type{T} = Float64, | |
kwargs... |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #157 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 18 18
Lines 184 206 +22
=========================================
+ Hits 184 206 +22 ☔ View full report in Codecov by Sentry. |
Using this technique seems to be marginally slower for a I'm going to try some other geometries to see if any others get any benefit. |
f, | ||
cyl::Meshes.CylinderSurface, | ||
rule::HAdaptiveCubature; | ||
FP::Type{T} = Float64, | ||
diff_method::DM = _default_diff_method(cyl, FP), | ||
kwargs... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[JuliaFormatter] reported by reviewdog 🐶
f, | |
cyl::Meshes.CylinderSurface, | |
rule::HAdaptiveCubature; | |
FP::Type{T} = Float64, | |
diff_method::DM = _default_diff_method(cyl, FP), | |
kwargs... | |
f, | |
cyl::Meshes.CylinderSurface, | |
rule::HAdaptiveCubature; | |
FP::Type{T} = Float64, | |
diff_method::DM = _default_diff_method(cyl, FP), | |
kwargs... |
Changes
HCubature.hcubature_buffer
to pre-allocate a buffer that can be re-used.Conclusion
Performance did not improve when using this for
Rope
orCylinderSurface
.