-
Notifications
You must be signed in to change notification settings - Fork 92
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
Faster ExclusiveTopology construction #927
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #927 +/- ##
==========================================
- Coverage 93.86% 93.84% -0.02%
==========================================
Files 36 36
Lines 5313 5296 -17
==========================================
- Hits 4987 4970 -17
Misses 326 326 ☔ View full report in Codecov by Sentry. |
@@ -107,17 +107,18 @@ function _num_shared_vertices(cell_a::C1, cell_b::C2) where {C1, C2} | |||
end | |||
|
|||
function _exclusive_topology_ctor(cells::Vector{C}, vertex_cell_table::Array{Set{Int}}, vertex_table, face_table, edge_table, cell_neighbor_table) where C <: AbstractCell | |||
cell_neighbor_ids = Set{Int}() |
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.
Is there an advantage to making this ordered so the order in the cell_neighbor_table[cell_id]
will not be "random"? Maybe it doesn't matter.
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.
Probably this does not matter, because we do not enforce any ordering and locality properties on our grids in general.
I cannot see any significant difference between the PR and master unfortunately. Master So a about 1% difference on my machine. We need to think about how to increase data locality and reduce allocations here if we want to see a significant speedup. |
Thanks for checking it! |
Had this as notes lingering around after seeing #617, nothing urgent or major.
Timings should be verified by someone since this is so heavy on GC it seems to be quite unreliable to time it and profiling changes from run to run...
Somewhat representative btime runs give