I tried rewriting @brefphp runtime in Rust for Bref v4. Not worth it:
- Bref's PHP code takes ~0.3ms per request
- Rust extension: no real gain on warm or cold invokes
PHP is just fast enough here so no Rust in Bref for now :)
https://mnapoli.fr/bref-runtime-in-rust

Hi!Exploring a Rust runtime for BrefBref runs PHP applications on AWS Lambda. Its runtime is the code that receives AWS Lambda events and passes them to your application, and it is written in PHP. While working on Bref v4, I wanted to know if rewriting it in Rust would make things faster. The answer is no, because the PHP code in Bref takes almost no time. This article is based on my notes from that experiment.
commit 7f73ab0