forked from petgraph/petgraph
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FEAT: Speed up Graph, StableGraph::map
Use Vec::extend instead of a push loop -- this improves performance. Microbenchmark results: ``` name old ns/iter new ns/iter diff ns/iter diff % graph_map 569 323 -246 -43.23% stable_graph_map 594 405 -189 -31.82% ```
- Loading branch information
Showing
2 changed files
with
20 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters