Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use rayon crate to change files in parallel #9

Merged
merged 2 commits into from
Nov 29, 2019

Conversation

praveenperera
Copy link
Member

@praveenperera praveenperera commented Nov 29, 2019

  • Sequentially builds path_list
  • Then does the user request operations in parallel (1 of the following):
    • Printing file name
    • Printing file contents
    • Changing files

Naive bench:

#old
rustywind ~/code/. --write  14.79s user 6.92s system 65% cpu 33.110 total

#new
rustywind ~/code/. --write  22.51s user 9.64s system 572% cpu 5.620 total

@praveenperera praveenperera merged commit 5d5f871 into master Nov 29, 2019
@praveenperera praveenperera deleted the explore-parallel branch November 29, 2019 02:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant