Skip to content

Commit

Permalink
chore: refactor IndexedCrate::new in preparation for parallelizing (#405
Browse files Browse the repository at this point in the history
)

* chore: refactor IndexedCrate::new in preparation for parallelizing

Modify imperative code into iterator code to make it easier to
paralellize with rayon.

No perf increase:

```
IndexedCrate/new(aws-sdk-ec2)
                        time:   [1.3491 s 1.3505 s 1.3520 s]
                        change: [-0.8260% -0.7120% -0.6178%] (p = 0.00 < 0.05)
                        Change within noise threshold.
```

* Update src/indexed_crate.rs

---------

Co-authored-by: Predrag Gruevski <2348618+obi1kenobi@users.noreply.github.com>
  • Loading branch information
jalil-salame and obi1kenobi committed Aug 28, 2024
1 parent 9680dd7 commit 72d9ecc
Show file tree
Hide file tree
Showing 2 changed files with 247 additions and 100 deletions.
104 changes: 93 additions & 11 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 72d9ecc

Please # to comment.