Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid excessive memory allocation when repeating SparseList
Previous code allocated an array and a list for all atoms (not just entries) in the SparseList and then in a loop repeatedly called np.array on it, which creates copies. This gets very expensive when structures are large (>1k atoms) and is not necessary here.
- Loading branch information