Repository navigation
Conversation
|
Even after this fix, it appears that |
connorjward
left a comment
There was a problem hiding this comment.
The idea as a whole is good I think, but the current implementation isn't there yet. I think you want to visit things like component.has_nontrivial_regions etc and handle things there.
|
@connorjward I have rewritten my former attempt at optimising the tabulation of layouts: now inside |
connorjward
left a comment
There was a problem hiding this comment.
Looks great. Very happy with how little code is needed.
Co-authored-by: Connor Ward <c.ward20@imperial.ac.uk>
ef8ae20 to
319e82f
Compare
|
@connorjward this PR is basically done at this point. There are probably other things that could be optimised in this function (particularly in |
|
This is failing |
…merging regions into a single one
|
@connorjward I now fixed this. There was a bug in |
Profiling my particle scripts revealed that
compute_layoutsis an expensive operation, which we frequently hit when mutating VoMs and subsequently refreshing their FunctionSpaces. This is an attempt at optimising this function, leveraging the fact that VoM axes have SF with empty leaves (see #5748 or #5747).Investigating
compute_layoutsin detail revealed that one of the most costly operations there is walking theAxisTreeand particularly building the offset tables. My first attempt at reducing the cost of this function is to prevent the computation of offset tables when all axis components are trivial i.e, their SFs have no leaves and their only regions are owned/ghost group splits.