wp-cli / ideas

💡 Ideas and feature requests are collected here
40 stars 1 forks source link

Speed up bulk processes by rewriting with Rust #178

Open tronicboy1 opened 1 year ago

tronicboy1 commented 1 year ago

Hi!

Thank you all for your contributions.

Suggestion

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

Benefits

Problems

First steps

danielbachhuber commented 1 year ago

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 commented 1 year ago

@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!