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

Speed up bulk processes by rewriting with Rust #178

Open
tronicboy1 opened this issue Aug 20, 2023 · 2 comments
Open

Speed up bulk processes by rewriting with Rust #178

tronicboy1 opened this issue Aug 20, 2023 · 2 comments

Comments

@tronicboy1
Copy link

Hi!

Thank you all for your contributions.

Suggestion

Rewrite some core operations in Rust to improve speed of the WP CLI.

Benefits

  • Improved speed from use of machine code
  • Improved stability in memory intensive operations

Problems

  • Lack of contributors with knowledge in Rust?
  • Difficulties integrating with current code base?

First steps

  • Advise on what areas of WP CLI need performance improvements
  • Devise benchmark tests to see if changes actually improve speed
@danielbachhuber
Copy link
Member

Thanks for the suggestion, @tronicboy1 !

Given WP-CLI interacts directly with WordPress and WordPress requires PHP, I think we're unlikely to rewrite any parts of WP-CLI to Rust in the near future.

With that being said, you might be interested in one such take at a faster implementation on one of WP-CLI's core processes: https://github.com/Automattic/vip-search-replace

If you'd like to try something similar, we'd love to hear about any progress you make.

@tronicboy1
Copy link
Author

@danielbachhuber
Hi Daniel, thanks for the response!

Thank you for pointing me in the right direction. I didn't know we also used node in the CLI!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants