schrodinger / coordgenlibs

Schrodinger-developed 2D Coordinate Generation
BSD 3-Clause "New" or "Revised" License
42 stars 28 forks source link

Reduce number of copies of some vectors #72

Closed d-b-w closed 4 years ago

d-b-w commented 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.

ZontaNicola commented 4 years ago

wow 15% is a lot!