Closed d-b-w closed 4 years ago
By returning references and iterating over references. Copying vectors unnecessarily can be a source of slowdown. getAllDofs() is called so frequently that this is worth about a 15% speedup in some of the slower cases.
getAllDofs()
wow 15% is a lot!
By returning references and iterating over references. Copying vectors unnecessarily can be a source of slowdown.
getAllDofs()
is called so frequently that this is worth about a 15% speedup in some of the slower cases.