Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix recently added n^2 edge collection. (#10392)
### Problem `retain_edges` is crazy slow, but the simplicity of the API allured me late in the implementation of #10230, after I had finished testing the performance of the change. ### Solution Switch to `filter_map`, which we use elsewhere to good effect, and which a previous version of #10230 had used. ### Result When repeatedly re-running tests with light edits, edge garbage collection goes from multiple seconds to single digit milliseconds.
- Loading branch information